scsi-header.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff -Nur linux-2.6.32.orig/include/scsi/Kbuild linux-2.6.32/include/scsi/Kbuild
  2. --- linux-2.6.32.orig/include/scsi/Kbuild 2009-12-03 04:51:21.000000000 +0100
  3. +++ linux-2.6.32/include/scsi/Kbuild 2009-12-03 19:46:03.000000000 +0100
  4. @@ -1,3 +1,5 @@
  5. +header-y += sg.h
  6. +header-y += scsi_ioctl.h
  7. header-y += scsi.h
  8. header-y += scsi_netlink.h
  9. header-y += scsi_netlink_fc.h
  10. diff -Nur linux-2.6.32.orig/include/scsi/scsi.h linux-2.6.32/include/scsi/scsi.h
  11. --- linux-2.6.32.orig/include/scsi/scsi.h 2009-12-03 04:51:21.000000000 +0100
  12. +++ linux-2.6.32/include/scsi/scsi.h 2009-12-03 19:47:49.000000000 +0100
  13. @@ -143,6 +143,8 @@
  14. #define SCSI_MAX_VARLEN_CDB_SIZE 260
  15. +#ifdef __KERNEL__
  16. +
  17. /* defined in T10 SCSI Primary Commands-2 (SPC2) */
  18. struct scsi_varlen_cdb_hdr {
  19. u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
  20. @@ -169,6 +171,8 @@
  21. scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]);
  22. }
  23. +#endif
  24. +
  25. /*
  26. * SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft
  27. * T10/1561-D Revision 4 Draft dated 7th November 2002.
  28. @@ -284,8 +288,10 @@
  29. SCSI_PROTOCOL_UNSPEC = 0xf, /* No specific protocol */
  30. };
  31. +#ifdef __KERNEL__
  32. /* Returns a human-readable name for the device */
  33. extern const char * scsi_device_type(unsigned type);
  34. +#endif
  35. /*
  36. * standard mode-select header prepended to all mode-select commands