Re: Linux Kernel bug report (includes fix)

From: Bernd Schubert
Date: Sat Aug 07 2004 - 14:34:04 EST


On Saturday 07 August 2004 15:26, Måns Rullgård wrote:
> Joerg Schilling <schilling@xxxxxxxxxxxxxxxxxxx> writes:
> > You now again have the bug report _and_ the fix in a single short mail.
>
> I could see no patch contained in your mail.

I guess thats what Joerg wants to have.

Cheers,
Bernd
diff -ru linux-2.6.8-rc2-mm2.bak/include/scsi/scsi.h linux-2.6.8-rc2-mm2/include/scsi/scsi.h
--- linux-2.6.8-rc2-mm2.bak/include/scsi/scsi.h 2004-06-16 07:20:25.000000000 +0200
+++ linux-2.6.8-rc2-mm2/include/scsi/scsi.h 2004-08-07 20:51:27.000000000 +0200
@@ -214,25 +214,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;
+ uint8_t _r1; /* reserved */
+ uint8_t medium; /* device-specific medium type */
+ uint8_t _r2; /* reserved */
+ uint8_t block_desc_length; /* block descriptor length */
+ uint8_t density; /* device-specific density code */
+ uint8_t number_blocks_hi; /* number of blocks in this block desc */
+ uint8_t number_blocks_med;
+ uint8_t number_blocks_lo;
+ uint8_t _r3;
+ uint8_t block_length_hi; /* block length for blocks in this desc */
+ uint8_t block_length_med;
+ uint8_t block_length_lo;
};

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

/*
diff -ru linux-2.6.8-rc2-mm2.bak/include/scsi/sg.h linux-2.6.8-rc2-mm2/include/scsi/sg.h
--- linux-2.6.8-rc2-mm2.bak/include/scsi/sg.h 2004-08-03 13:22:50.000000000 +0200
+++ linux-2.6.8-rc2-mm2/include/scsi/sg.h 2004-08-07 20:53:41.000000000 +0200
@@ -89,6 +89,8 @@

/* New interface introduced in the 3.x SG drivers follows */

+#include <linux/compiler.h>
+
typedef struct sg_iovec /* same structure as used by readv() Linux system */
{ /* call. It defines one scatter-gather element. */
void __user *iov_base; /* Starting address */