diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-06-10 16:33:48 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-11 12:16:01 -0400 |
commit | 96e672c79fb114ec38a868dc864e743205c24332 (patch) | |
tree | 0bad9a61fdab616e7e4070dbfc972045b34b0954 /drivers/net | |
parent | a2bd2ec8d1bef7479d26d375162963106757e8e9 (diff) |
[PATCH] 3c5zz ethernet: fix section warnings
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/3c501.c | 2 | ||||
-rw-r--r-- | drivers/net/3c503.c | 2 | ||||
-rw-r--r-- | drivers/net/3c505.c | 2 | ||||
-rw-r--r-- | drivers/net/3c507.c | 2 | ||||
-rw-r--r-- | drivers/net/3c523.c | 2 | ||||
-rw-r--r-- | drivers/net/3c527.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/3c501.c b/drivers/net/3c501.c index f6d51ce34b00..bb44509fd404 100644 --- a/drivers/net/3c501.c +++ b/drivers/net/3c501.c | |||
@@ -909,7 +909,7 @@ MODULE_PARM_DESC(irq, "EtherLink IRQ number"); | |||
909 | * here also causes the module to be unloaded | 909 | * here also causes the module to be unloaded |
910 | */ | 910 | */ |
911 | 911 | ||
912 | int init_module(void) | 912 | int __init init_module(void) |
913 | { | 913 | { |
914 | dev_3c501 = el1_probe(-1); | 914 | dev_3c501 = el1_probe(-1); |
915 | if (IS_ERR(dev_3c501)) | 915 | if (IS_ERR(dev_3c501)) |
diff --git a/drivers/net/3c503.c b/drivers/net/3c503.c index dcc98afa65d7..cb5ef75450dc 100644 --- a/drivers/net/3c503.c +++ b/drivers/net/3c503.c | |||
@@ -688,7 +688,7 @@ MODULE_LICENSE("GPL"); | |||
688 | 688 | ||
689 | /* This is set up so that only a single autoprobe takes place per call. | 689 | /* This is set up so that only a single autoprobe takes place per call. |
690 | ISA device autoprobes on a running machine are not recommended. */ | 690 | ISA device autoprobes on a running machine are not recommended. */ |
691 | int | 691 | int __init |
692 | init_module(void) | 692 | init_module(void) |
693 | { | 693 | { |
694 | struct net_device *dev; | 694 | struct net_device *dev; |
diff --git a/drivers/net/3c505.c b/drivers/net/3c505.c index 111601ca4ca3..19c0b856c488 100644 --- a/drivers/net/3c505.c +++ b/drivers/net/3c505.c | |||
@@ -1633,7 +1633,7 @@ MODULE_PARM_DESC(io, "EtherLink Plus I/O base address(es)"); | |||
1633 | MODULE_PARM_DESC(irq, "EtherLink Plus IRQ number(s) (assigned)"); | 1633 | MODULE_PARM_DESC(irq, "EtherLink Plus IRQ number(s) (assigned)"); |
1634 | MODULE_PARM_DESC(dma, "EtherLink Plus DMA channel(s)"); | 1634 | MODULE_PARM_DESC(dma, "EtherLink Plus DMA channel(s)"); |
1635 | 1635 | ||
1636 | int init_module(void) | 1636 | int __init init_module(void) |
1637 | { | 1637 | { |
1638 | int this_dev, found = 0; | 1638 | int this_dev, found = 0; |
1639 | 1639 | ||
diff --git a/drivers/net/3c507.c b/drivers/net/3c507.c index 4db82893909c..6039049259ed 100644 --- a/drivers/net/3c507.c +++ b/drivers/net/3c507.c | |||
@@ -932,7 +932,7 @@ module_param(irq, int, 0); | |||
932 | MODULE_PARM_DESC(io, "EtherLink16 I/O base address"); | 932 | MODULE_PARM_DESC(io, "EtherLink16 I/O base address"); |
933 | MODULE_PARM_DESC(irq, "(ignored)"); | 933 | MODULE_PARM_DESC(irq, "(ignored)"); |
934 | 934 | ||
935 | int init_module(void) | 935 | int __init init_module(void) |
936 | { | 936 | { |
937 | if (io == 0) | 937 | if (io == 0) |
938 | printk("3c507: You should not use auto-probing with insmod!\n"); | 938 | printk("3c507: You should not use auto-probing with insmod!\n"); |
diff --git a/drivers/net/3c523.c b/drivers/net/3c523.c index b40885d41680..4bf8510655c5 100644 --- a/drivers/net/3c523.c +++ b/drivers/net/3c523.c | |||
@@ -1277,7 +1277,7 @@ MODULE_PARM_DESC(io, "EtherLink/MC I/O base address(es)"); | |||
1277 | MODULE_PARM_DESC(irq, "EtherLink/MC IRQ number(s)"); | 1277 | MODULE_PARM_DESC(irq, "EtherLink/MC IRQ number(s)"); |
1278 | MODULE_LICENSE("GPL"); | 1278 | MODULE_LICENSE("GPL"); |
1279 | 1279 | ||
1280 | int init_module(void) | 1280 | int __init init_module(void) |
1281 | { | 1281 | { |
1282 | int this_dev,found = 0; | 1282 | int this_dev,found = 0; |
1283 | 1283 | ||
diff --git a/drivers/net/3c527.c b/drivers/net/3c527.c index 6db3301e7965..1b1cb0026072 100644 --- a/drivers/net/3c527.c +++ b/drivers/net/3c527.c | |||
@@ -1646,7 +1646,7 @@ static struct net_device *this_device; | |||
1646 | * insmod multiple modules for now but it's a hack. | 1646 | * insmod multiple modules for now but it's a hack. |
1647 | */ | 1647 | */ |
1648 | 1648 | ||
1649 | int init_module(void) | 1649 | int __init init_module(void) |
1650 | { | 1650 | { |
1651 | this_device = mc32_probe(-1); | 1651 | this_device = mc32_probe(-1); |
1652 | if (IS_ERR(this_device)) | 1652 | if (IS_ERR(this_device)) |