Commit 0a72d6c4 authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] allow broken apps to include kernel header

Include compiler.h from sg.h as it uses the __user notation, and change
the types in scsi.h to use user exportable types.
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f85865d3
......@@ -214,25 +214,25 @@ static inline int scsi_status_is_good(int status)
*/
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];
};
/*
......
#ifndef _SCSI_GENERIC_H
#define _SCSI_GENERIC_H
#include <linux/compiler.h>
/*
History:
Started: Aug 9 by Lawrence Foard (entropy@world.std.com), to allow user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment