Skip to contentSkip to conversation

[PATCH][SCSI][kernel 2.6.0]

PATCH New noreaga 1 participant 1 message Jan 6, 2004

lore
Share & tools
lore

noreaga

author
#0 lore raw

PATCH 1/1 [PATCH][SCSI][kernel 2.6.0]

fix wrong data types in include/scsi/scsi.h

in file include/scsi/scsi.h (lines 203 to 221, structs css_modsel_head and scsi_lun) i found data types u8 instead of __u8.

massimiliano picco
[email protected]

--- linux-2.6.0/include/scsi/scsi.h 2003-12-18 03:59:54.000000000
+0100
+++ linux/include/scsi/scsi.h 2004-01-02 22:05:11.000000000 +0100
@@ -200,25 +200,25 @@
*/

struct ccs_modesel_head {

-       u8 _r1;                 /* reserved */
-       u8 medium;              /* device-specific medium type */
-       u8 _r2;                 /* reserved */
-       u8 block_desc_length;   /* block descriptor length */
-       u8 density;             /* device-specific density code */
-       u8 number_blocks_hi;    /* number of blocks in this block desc */
-       u8 number_blocks_med;
-       u8 number_blocks_lo;
-       u8 _r3;
-       u8 block_length_hi;     /* block length for blocks in this desc */
-       u8 block_length_med;
-       u8 block_length_lo;
+       __u8 _r1;                       /* reserved */
+       __u8 medium;            /* device-specific medium type */
+       __u8 _r2;                       /* reserved */
+       __u8 block_desc_length; /* block descriptor length */
+       __u8 density;           /* device-specific density code */
+       __u8 number_blocks_hi;  /* number of blocks in this block desc */
+       __u8 number_blocks_med;
+       __u8 number_blocks_lo;
+       __u8 _r3;
+       __u8 block_length_hi;   /* block length for blocks in this desc */
+       __u8 block_length_med;
+       __u8 block_length_lo;

};

/*
* ScsiLun: 8 byte LUN.
*/
struct scsi_lun {
- u8 scsi_lun[8];
+ __u8 scsi_lun[8];
};

/*