OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../linux-header/PATCHv2-1-4-scsi-consistent-use-of-__u8-in-scsi-scsi.h.patch
  5. # Copyright (C) 2009 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From patchwork Tue Sep 29 10:34:07 2009
  17. Content-Type: text/plain; charset="utf-8"
  18. MIME-Version: 1.0
  19. Content-Transfer-Encoding: 8bit
  20. Subject: [PATCHv2,1/4] scsi: consistent use of __u8 in scsi/scsi.h
  21. Date: Tue, 29 Sep 2009 10:34:07 -0000
  22. From: Michael S. Tsirkin <mst@redhat.com>
  23. X-Patchwork-Id: 50527
  24. scsi/scsi.h is exported to userspace, so it should
  25. use __u8 instead of u8 as other userspace-visible headers do.
  26. This fixes the following errors when application includes scsi/scsi.h
  27. generated with make headers_install:
  28. include/scsi/scsi.h:145: error: expected specifier-qualifier-list before ‘u8’
  29. include/scsi/scsi.h: In function ‘scsi_varlen_cdb_length’:
  30. include/scsi/scsi.h:156: error: ‘struct scsi_varlen_cdb_hdr’ has no member named ‘additional_cdb_length’
  31. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  32. ---
  33. include/scsi/scsi.h | 8 ++++----
  34. 1 files changed, 4 insertions(+), 4 deletions(-)
  35. diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
  36. index 084478e..dfcfaab 100644
  37. --- a/include/scsi/scsi.h
  38. +++ b/include/scsi/scsi.h
  39. @@ -142,10 +142,10 @@ struct scsi_cmnd;
  40. /* defined in T10 SCSI Primary Commands-2 (SPC2) */
  41. struct scsi_varlen_cdb_hdr {
  42. - u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
  43. - u8 control;
  44. - u8 misc[5];
  45. - u8 additional_cdb_length; /* total cdb length - 8 */
  46. + __u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
  47. + __u8 control;
  48. + __u8 misc[5];
  49. + __u8 additional_cdb_length; /* total cdb length - 8 */
  50. __be16 service_action;
  51. /* service specific data follows */
  52. };