2.4.20 compile fix for drivers/scsi/in2000.c

2.4.20 compile fix for drivers/scsi/in2000.c

Post by John Ki » Wed, 11 Dec 2002 06:40:13



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

    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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.4.20 compile fix for drivers/scsi/t128.c

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=t128  -c -o t128.o t128.c
t128.c:148: signatures causes a section type conflict
NCR5380.c:458: warning: `NCR5380_print_phase' defined but not used
NCR5380.c:402: warning: `NCR5380_print' defined but not used
make[3]: *** [t128.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/t128.c linux-2.4.20-new/drivers/scsi/t128.c
--- linux-2.4.20/drivers/scsi/t128.c    2001-12-21 12:41:55.000000000 -0500

 #define NO_BASES (sizeof (bases) / sizeof (struct base))

-static const struct signature {
+static struct signature {
        const char *string;
        int offset;
 } signatures[] __initdata = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. cmipci gameport and gravis gamepad pro

3. SCSI under 2.4.20-8 but not 2.4.20-18.9 (RH9)

4. My desktop

5. 2.4.20rc1 compile fix for in2000.c

6. Printer device trouble after upgrade

7. 2.4.20-preX drivers/scsi/sim710 compile broken

8. Apache API

9. fix intermezzo compile in 2.4.20-rc1

10. : 2.4.20: fix oopsable bug in OSS PCI sound drivers

11. [2.4.20-rc1] compiler fix drivers/ide/pdc202xx.c

12. IBM x440 problems on 2.4.20 to 2.4.20-rc1-ac3

13. 2.4.20 + XFS patches + rmap15a + Ingo's 2.4.20-rc3 O(1) sched