[PATCH] 2.4.20 compile fix for drivers/scsi/in2000.c

John Kim (john@larvalstage.com)
Mon, 9 Dec 2002 16:36:25 -0500 (EST)


Patch below fixes following compile breakage:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=in2000
-c -o in2000.o in2000.c
in2000.c:1919: base_tab causes a section type conflict
in2000.c:1926: int_tab causes a section type conflict
make[3]: *** [in2000.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20/drivers/scsi'
make[1]: *** [_subdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20/drivers'
make: *** [_dir_drivers] Error 2

diff -Naur linux-2.4.20/drivers/scsi/in2000.c linux-2.4.20-new/drivers/scsi/in2000.c
--- linux-2.4.20/drivers/scsi/in2000.c 2001-09-30 15:26:07.000000000 -0400
+++ linux-2.4.20-new/drivers/scsi/in2000.c 2002-12-09 12:13:42.000000000 -0500
@@ -1916,14 +1916,14 @@
0
};

-static const unsigned short base_tab[] in2000__INITDATA = {
+static unsigned short base_tab[] in2000__INITDATA = {
0x220,
0x200,
0x110,
0x100,
};

-static const int int_tab[] in2000__INITDATA = {
+static int int_tab[] in2000__INITDATA = {
15,
14,
11,
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/