[PATCHv2 1/4] scsi: consistent use of __u8 in scsi/scsi.h

[PATCHv2 1/4] scsi: consistent use of __u8 in scsi/scsi.h

Post by Michael S. » Wed, 30 Sep 2009 19:40:08


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 */
};
--
1.6.5.rc2

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. FS: A2091 SCSI controller, SCSI cable and 9GB IBM SCSI harddrive

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

The computer, on my Debian linux home hard-wired five PC Ethernet network,
on which I wish to add a SCSI hard disk for backup purposes, has an


Several SCSI dirves -- 36gig to 50 gig -- are available at Ebay, that seem most
suitable.

Most are "LVD SCSI" drives; at least one Ebay retailer seems to imply
that this might necessitate the use of some adapter, that he'll sell me as
well.

I suspect that I don't really need this adapter.

Am I right?

P.S. I don't read comp.linux.hardware that often; so a direct email would be
greatly appreciated.

I'll respond, when the matter is cleared up, to the net.

Thanks in advance,

Yours,

-- Saul

---------- Forwarded message ----------
Date: Fri, 02 Jan 2004 20:15:16 -0700
From: Daryl G. Norton < XXXX@XXXXX.COM >
To: XXXX@XXXXX.COM
Subject: Re: Question for seller -- Item #2777732346

It will if you have the correct adapters. I have the higher end adapters
that will make these drives work with non LVD controllers. Most of the
adapters on Ebay are rated low and do not work on both Mac and PC. Mine do
it all. They run 9.95 per adapter with no extra shipping if shipped with
the drive.

Thanks,


Call or email me if you have more questions.


On 01/02/2004 7:53 PM, " XXXX@XXXXX.COM "

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

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

5. SCSI Utilities in XP since EASY SCSI not used on Adaptec cards with XP

6. what SCSI hd`s can be attached/used to/on an Ultra320 SCSI controller?

7. Will Adaptec AIC-7880 PCI ultra SCSI work with single-end SCSI DVD rom

8. Help configuring SCSI drive (Unexpected SCSI Command Failure)

9. SCSI Harddrive not recognized in SCSI BIOS

10. My PC becomes uber slow while accessing SCSI drive, current SCSI mode?

11. Backup Laptop W/ SCSI Tape & SCSI PC Card

12. SCSI device on a laptop: PC Card or USB/SCSI converter?

13. SCSI Miniport driver to emulate a SCSI device

14. Some SCSI Questions with SCSI Lib2

15. Disc burned on SCSI / not reading on non-scsi CD