All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4.20 compile fix for drivers/scsi/t128.c
@ 2002-12-09 21:44 John Kim
  2002-12-09 23:49 ` Andreas Steinmetz
  0 siblings, 1 reply; 2+ messages in thread
From: John Kim @ 2002-12-09 21:44 UTC (permalink / raw)
  To: linux-kernel; +Cc: marcelo, alan


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
+++ linux-2.4.20-new/drivers/scsi/t128.c	2002-12-09 12:52:21.000000000 -0500
@@ -142,7 +142,7 @@
 
 #define NO_BASES (sizeof (bases) / sizeof (struct base))
 
-static const struct signature {
+static struct signature {
 	const char *string;
 	int offset;
 } signatures[] __initdata = {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.4.20 compile fix for drivers/scsi/t128.c
  2002-12-09 21:44 [PATCH] 2.4.20 compile fix for drivers/scsi/t128.c John Kim
@ 2002-12-09 23:49 ` Andreas Steinmetz
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Steinmetz @ 2002-12-09 23:49 UTC (permalink / raw)
  To: John Kim; +Cc: linux-kernel, marcelo, alan

I did already submit this, it's in the AC tree and via Alan in Marcelo's 
BK tree:

http://linux.bkbits.net:8080/linux-2.4/diffs/drivers/scsi/t128.c@1.4?nav=index.html|ChangeSet@-7d|cset@1.757.28.37

John Kim wrote:
> 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
> +++ linux-2.4.20-new/drivers/scsi/t128.c	2002-12-09 12:52:21.000000000 -0500
> @@ -142,7 +142,7 @@
>  
>  #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
> 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/
> 

-- 
Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-12-09 23:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 21:44 [PATCH] 2.4.20 compile fix for drivers/scsi/t128.c John Kim
2002-12-09 23:49 ` Andreas Steinmetz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.