[PATCH] scsi: consistent use of __u8 in scsi/scsi.h

[PATCH] scsi: consistent use of __u8 in scsi/scsi.h

Post by Michael S. » Thu, 30 Jul 2009 20:20:10

scsi/scsi.h is exported to userspace, so it should
use __u8 instead of u8 as other userspace-visible headers do.

This fixes the following errors when application includes scsi/scsi.h
generated with make headers_install:
include/scsi/scsi.h:145: error: expected specifier-qualifier-list before 8 include/scsi/scsi.h: In function csi_varlen_cdb_length
include/scsi/scsi.h:156: error: truct scsi_varlen_cdb_hdrhas no member named dditional_cdb_length
Signed-off-by: Michael S. Tsir<in
include/scsi/scsi.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index 084478e..dfcfaab 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -142,10 +142,10 @@ struct scsi_cmnd;

/* defined in T10 SCSI Primary Commands-2 (SPC2) */
struct scsi_varlen_cdb_hdr {
- u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
- u8 control;
- u8 misc[5];
- u8 additional_cdb_length; /* total cdb length - 8 */
+ __u8 opcode; /* opcode always == VARIABLE_LENGTH_CMD */
+ __u8 control;
+ __u8 misc[5];
+ __u8 additional_cdb_length; /* total cdb length - 8 */
__be16 service_action;
/* service specific data follows */
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

1. [PATCH][SCSI] megaraid: Convert from "scsi.h" to <scsi.h> (and friends)

2. How to create key in \HKLM\HARDWARE\DEVICEMAP\Scsi\Scsi Port2\Scsi Bus 0 ??

I would like to create a key in registry in:


I receive:

Error writing to the registry

I have Administrator rights! I check the premision on registry and I
should be able to create Key.

I treied to do it useing

psexec -s -i regedit.exe but the result is the same.

Help me! I need to create key in this place to install one driver manually.

3. SCSI: Does one need a special SCSI LVD adapter, over and above a SCSI card?

4. FS: A2091 SCSI controller, SCSI cable and 9GB IBM SCSI harddrive

5. [PATCH] [scsi]: Add offline state checking while dispatch a scsi cmd

6. [PATCH scsi-misc-2.6 00/04] scsi: misc timer fixes (reworked)

7. [PATCH scsi-misc-2.6 03/03] scsi: remove spurious if tests from scsi_eh_{times_out|done}

8. [PATCH scsi-misc-2.6 07/08] scsi: remove bogus {get|put}_device() calls

9. [2.6 patch] drivers/scsi/libata-scsi.c: make some functions static

10. [PATCH scsi-misc-2.6 07/13] scsi: move error handling out of scsi_init_io() into scsi_prep_fn()

11. [PATCH scsi-misc-2.6 12/13] scsi: replace scsi_queue_insert() with scsi_requeue_command()

12. [PATCH scsi-misc-2.6 02/13] scsi: don't turn on REQ_SPECIAL on sgtable allocation failure.

13. [PATCH scsi-misc-2.6 01/07] scsi: update and make public scsi_requeue_command()

14. [PATCH scsi-misc-2.6 03/08] scsi: remove unused scsi_cmnd->internal_timeout field

15. [RFC] [PATCH 3/9] drivers/scsi/gdth.h Removal of old scsi code