* [2.4 patch] remove REPORT_LUNS from cpqfcTSstructs.h
@ 2004-01-07 14:34 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-01-07 14:34 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-kernel, jgarzik, linux-scsi
Jeff Garzik added a #define REPORT_LUNS to scsi.h resulting in the
following compile warnings for a similar #deine in cpqfcTSstructs.h:
<-- snip -->
gcc-2.95 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.25-pre4-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=cpqfcTSinit -c -o cpqfcTSinit.o
cpqfcTSinit.c
In file included from cpqfcTSinit.c:57:
cpqfcTSstructs.h:222: warning: `REPORT_LUNS' redefined
/home/bunk/linux/kernel-2.4/linux-2.4.25-pre4-full/include/scsi/scsi.h:81:
warning: this is the location of the previous definition
gcc-2.95 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.25-pre4-full/inclu
de -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=cpqfcTScontrol -c -o
cpqfcTScontrol.o cpqfcTScontrol.c
In file included from cpqfcTScontrol.c:48:
cpqfcTSstructs.h:222: warning: `REPORT_LUNS' redefined
/home/bunk/linux/kernel-2.4/linux-2.4.25-pre4-full/include/scsi/scsi.h:81:
warning: this is the location of the previous definition
...
gcc-2.95 -D__KERNEL__ -I/home/bunk/linux/kernel-2.4/linux-2.4.25-pre4-full/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=k6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=cpqfcTSworker -c -o
cpqfcTSworker.o cpqfcTSworker.c
In file included from cpqfcTSworker.c:49:
cpqfcTSstructs.h:222: warning: `REPORT_LUNS' redefined
...
<-- snip -->
REPORT_LUNS is already removed from cpqfcTSstructs.h in 2.6 and the
patch below removes it from 2.4, too.
I've tested the compilation with 2.4.25-pre4.
Please apply
Adrian
--- linux-2.4.25-pre4-full/drivers/scsi/cpqfcTSstructs.h.old 2004-01-06 20:46:24.000000000 +0100
+++ linux-2.4.25-pre4-full/drivers/scsi/cpqfcTSstructs.h 2004-01-06 20:46:43.000000000 +0100
@@ -219,7 +219,6 @@
#define ELS_PRLI_ACC 0x22 // {FCP-SCSI} Process Login Accept
#define ELS_RJT 0x1000000
#define SCSI_REPORT_LUNS 0x0A0
-#define REPORT_LUNS 0xA0 // SCSI-3 command op-code
#define FCP_TARGET_RESET 0x200
#define ELS_LILP_FRAME 0x00000711 // 1st payload word of LILP frame
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-07 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-07 14:34 [2.4 patch] remove REPORT_LUNS from cpqfcTSstructs.h Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).