]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[PATCH] 3c5zz ethernet: fix section warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Sat, 10 Jun 2006 20:33:48 +0000 (13:33 -0700)
committerJeff Garzik <jeff@garzik.org>
Sun, 11 Jun 2006 16:16:01 +0000 (12:16 -0400)
Priority: not critical; makes init code discardable.

Fix section mismatch warnings:
WARNING: drivers/net/3c501.o - Section mismatch: reference to .init.text:el1_probe from .text between 'init_module' (at offset 0x812) and 'cleanup_module'
WARNING: drivers/net/3c503.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x661) and 'cleanup_card'
WARNING: drivers/net/3c505.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x228d) and 'cleanup_module'
WARNING: drivers/net/3c507.o - Section mismatch: reference to .init.text:el16_probe from .text between 'init_module' (at offset 0xa99) and 'cleanup_module'
WARNING: drivers/net/3c523.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x12e7) and 'cleanup_module'
WARNING: drivers/net/3c527.o - Section mismatch: reference to .init.text:mc32_probe from .text between 'init_module' (at offset 0xd8d) and 'cleanup_module'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/3c501.c
drivers/net/3c503.c
drivers/net/3c505.c
drivers/net/3c507.c
drivers/net/3c523.c
drivers/net/3c527.c

index f6d51ce34b005c99e90eb8e1fd8a824a055cd6ed..bb44509fd404b66791793c8bf3da6ea8a8fa8b3a 100644 (file)
@@ -909,7 +909,7 @@ MODULE_PARM_DESC(irq, "EtherLink IRQ number");
  * here also causes the module to be unloaded
  */
  
-int init_module(void)
+int __init init_module(void)
 {
        dev_3c501 = el1_probe(-1);
        if (IS_ERR(dev_3c501))
index dcc98afa65d717c7abe1f7360c0c9a90c75c3ce7..cb5ef75450dc72c19b98a77c5c5f8ce9c39fc5c8 100644 (file)
@@ -688,7 +688,7 @@ MODULE_LICENSE("GPL");
 
 /* This is set up so that only a single autoprobe takes place per call.
 ISA device autoprobes on a running machine are not recommended. */
-int
+int __init
 init_module(void)
 {
        struct net_device *dev;
index 111601ca4ca3da97d054cf3a70dfad08da476735..19c0b856c488097494f69c27ff14e2c3f615deeb 100644 (file)
@@ -1633,7 +1633,7 @@ MODULE_PARM_DESC(io, "EtherLink Plus I/O base address(es)");
 MODULE_PARM_DESC(irq, "EtherLink Plus IRQ number(s) (assigned)");
 MODULE_PARM_DESC(dma, "EtherLink Plus DMA channel(s)");
 
-int init_module(void)
+int __init init_module(void)
 {
        int this_dev, found = 0;
 
index 4db82893909c3118c17d0ee9435b72cf8666c112..6039049259ed1c1e94e56d787fbfb4dd7b57bceb 100644 (file)
@@ -932,7 +932,7 @@ module_param(irq, int, 0);
 MODULE_PARM_DESC(io, "EtherLink16 I/O base address");
 MODULE_PARM_DESC(irq, "(ignored)");
 
-int init_module(void)
+int __init init_module(void)
 {
        if (io == 0)
                printk("3c507: You should not use auto-probing with insmod!\n");
index b40885d4168092baa1d3e6e691e1aea0b2428227..4bf8510655c52574a543b34bd6204a40ea47f7f5 100644 (file)
@@ -1277,7 +1277,7 @@ MODULE_PARM_DESC(io, "EtherLink/MC I/O base address(es)");
 MODULE_PARM_DESC(irq, "EtherLink/MC IRQ number(s)");
 MODULE_LICENSE("GPL");
 
-int init_module(void)
+int __init init_module(void)
 {
        int this_dev,found = 0;
 
index 6db3301e7965adfbc53281405ac6220c0204a696..1b1cb0026072e71d200d6a7e8fd01dadf9582661 100644 (file)
@@ -1646,7 +1646,7 @@ static struct net_device *this_device;
  *     insmod multiple modules for now but it's a hack.
  */
 
-int init_module(void)
+int __init init_module(void)
 {
        this_device = mc32_probe(-1);
        if (IS_ERR(this_device))