Skip to contentSkip to conversation

drivers/scsi/aic7xxx/aic7xxx_core.c -Werror causes build to stop

PATCH Kees Bakker 2 participants 2 messages Jun 27, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

To build 2.5.73 using my SuSE 8.2 system (gcc 3.3) I need the following patch:

drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.orig +1 -1
@@ -33,7 +33,7 @@
 						   aic79xx_proc.o	\
 						   aic79xx_osm_pci.o
 
-EXTRA_CFLAGS += -Idrivers/scsi -Werror
+EXTRA_CFLAGS += -Idrivers/scsi -Werror -Wno-sign-compare
 #EXTRA_CFLAGS += -g
 
 # Files generated that shall be removed upon make clean
drivers/scsi/aic7xxx/aic7xxx_core.c renamed from drivers/scsi/aic7xxx/aic7xxx_core.c.orig +0 -1
@@ -73,7 +73,6 @@
 	"aic7892",
 	"aic7899"
 };
-static const u_int num_chip_names = NUM_ELEMENTS(ahc_chip_names);
 
 /*
  * Hardware error codes.
#1 lore raw
Quoted 6 lines · Kees Bakker

To build 2.5.73 using my SuSE 8.2 system (gcc 3.3) I need the following patch:

drivers/scsi/aic7xxx/Makefile line 39

Quoted 9 lines
drivers/scsi/aic7xxx/Makefile renamed from drivers/scsi/aic7xxx/Makefile.orig +1 -1
@@ -33,7 +33,7 @@
 						   aic79xx_proc.o	\
 						   aic79xx_osm_pci.o
 
-EXTRA_CFLAGS += -Idrivers/scsi -Werror
+EXTRA_CFLAGS += -Idrivers/scsi -Werror -Wno-sign-compare
 #EXTRA_CFLAGS += -g
 
 # Files generated that shall be removed upon make clean
...

The -Wno-sign-compare is not needed with the official gcc 3.3 release. It's only needed for beta versions of gcc 3.3 .

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed