mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [2.6 patch] SCSI gdth: kill #define __devinitdata
@ 2004-08-09 19:41 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-08-09 19:41 UTC (permalink / raw)
  To: achim_leubner; +Cc: James.Bottomley, linux-kernel, linux-scsi

I got the following warning in 2.6.8-rc3-mm2:

<--  snip  -->

...
  CC      drivers/scsi/gdth.o
drivers/scsi/gdth.c:622:1: warning: "__devinitdata" redefined
In file included from include/linux/moduleparam.h:4,
                 from include/linux/module.h:20,
                 from drivers/scsi/gdth.c:375:
include/linux/init.h:227:1: warning: this is the location of the 
previous definition
...

<--  snip  -->


The #define in question seems bogus, and the following patch simply 
removes it:


Signed-off-by: Adrian Bunk <bunk@fs.tum.de>

--- linux-2.6.8-rc3-mm2-full-3.4/drivers/scsi/gdth.c.old	2004-08-09 20:59:07.000000000 +0200
+++ linux-2.6.8-rc3-mm2-full-3.4/drivers/scsi/gdth.c	2004-08-09 21:03:02.000000000 +0200
@@ -618,9 +618,6 @@
 };
 
 /* __initfunc, __initdata macros */
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-#define __devinitdata
-#endif
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
 #define GDTH_INITFUNC(type, func)       type __init func 
 #include <linux/init.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-09 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-09 19:41 [2.6 patch] SCSI gdth: kill #define __devinitdata Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®