Skip to contentSkip to conversation

scsi.h uses "u8" which isn't defined.]

PATCH New Christoph Hellwig 1 participant 1 message Aug 17, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi.h uses "u8" which isn't defined.]

patch looks fine to me.

----- Forwarded message from Muli Ben-Yehuda <[email protected]> -----

Date: Sun, 17 Aug 2003 15:55:33 +0300
From: Muli Ben-Yehuda <[email protected]>
Subject: Re: [PATCH] scsi.h uses "u8" which isn't defined.
To: Dominik Strasser <[email protected]>
Cc: [email protected]

tmp/scsi.h 2003-08-17 14:39:42.000000000 +0200 line 230

Quoted 12 lines · Dominik Strasser

scsi.h uses "u8" which doesn't seem to be defined. Better use u_char.

tmp/scsi.h 2003-08-17 14:39:42.000000000 +0200 renamed from include/scsi/scsi.h 2003-08-17 14:36:02.000000000 +0200 +1 -1
@@ -226,7 +226,7 @@
  * ScsiLun: 8 byte LUN.
  */
 typedef struct scsi_lun {
-       u_char scsi_lun[8];
+       u8 scsi_lun[8];
 } ScsiLun;

IMO, it's more correct to include <linux/types.h> in scsi.h, which will bring in u8 and make scsi.h compilable on its own (provided __KERNEL__ is defined, as it should be).

Index: include/scsi/scsi.h
===================================================================
RCS file: /home/cvs/linux-2.5/include/scsi/scsi.h,v retrieving revision 1.10

scsi/scsi.h +2 -0
diff -u -r1.10 scsi.h
@@ -14,6 +14,8 @@
 
 */
 
+#include <linux/types.h> 
+
 /*
  * SCSI command lengths
  */
Signature · 7 lines
Muli Ben-Yehuda
http://www.mulix.org




----- End forwarded message -----