SCSI gdth: kill #define __devinitdata
PATCH 1/1 SCSI gdth: kill #define __devinitdata
I got the following warning in 2.6.8-rc3-mm2:
<-- snip -->
...
CC drivers/scsi/gdth.odrivers/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 <[email protected]>
drivers/scsi/gdth.c renamed from drivers/scsi/gdth.c.old +0 -3
@@ -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>