[PATCH] to allow seagate.c to compile properly

Arthur D. Jerijian (celestra@ix.netcom.com)
Mon, 18 Nov 1996 22:23:23 -0800 (PST)


Hi all,

I tried to build Linux 2.1.11 with just about everything built as modules.
It turns out that some of the drivers have #warning directives, but since
this is a 2.1.x kernel, they don't bother me much. I did find, however,
a boo-boo that prevents seagate.c from compiling. Here is a patch to
fix it, although I'm pretty sure that the other #warning's in that same
file will be fixed over time.

Thanks.

--Arthur

--- linux/drivers/scsi/seagate.c.orig Mon Nov 18 22:19:17 1996
+++ linux/drivers/scsi/seagate.c Mon Nov 18 22:19:21 1996
@@ -345,7 +345,7 @@

if (base_address)
{
- st0x_cr_sr = base_address + (controller_type == SEAGATE ? 0x1a00 : 0x1c00));
+ st0x_cr_sr = base_address + (controller_type == SEAGATE ? 0x1a00 : 0x1c00);
st0x_dr = st0x_cr_sr + 0x200;
#ifdef DEBUG
printk("%s detected. Base address = %x, cr = %x, dr = %x\n", tpnt->name, base_address, st0x_cr_sr, st0x_dr);