]> err.no Git - linux-2.6/commitdiff
[PATCH] de620: fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Wed, 8 Mar 2006 08:06:33 +0000 (00:06 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 11 Mar 2006 18:29:09 +0000 (13:29 -0500)
In latest -mm de620 gave following warning:
WARNING: drivers/net/de620.o - Section mismatch: reference to      \
.init.text:de620_probe from .text between 'init_module' (at offset \
0x1682) and 'cleanup_module'

init_module() call de620_probe() which is declared __init.
Fix is to declare init_module() __init too.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/de620.c

index 0069f5fa973aa907ee0d4d33c5ab5addc95601bc..22fc5b869a6080d9735edd0b0cda6b331521bf7e 100644 (file)
@@ -1012,7 +1012,7 @@ static int __init read_eeprom(struct net_device *dev)
 #ifdef MODULE
 static struct net_device *de620_dev;
 
-int init_module(void)
+int __init init_module(void)
 {
        de620_dev = de620_probe(-1);
        if (IS_ERR(de620_dev))