Commit 96e672c79fb114ec38a868dc864e743205c24332
Committed by
Jeff Garzik
1 parent
a2bd2ec8d1
Exists in
master
and in
7 other branches
[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>
Showing 6 changed files with 6 additions and 6 deletions Side-by-side Diff
drivers/net/3c501.c
drivers/net/3c503.c
drivers/net/3c505.c
... | ... | @@ -1633,7 +1633,7 @@ |
1633 | 1633 | MODULE_PARM_DESC(irq, "EtherLink Plus IRQ number(s) (assigned)"); |
1634 | 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 | 1638 | int this_dev, found = 0; |
1639 | 1639 |
drivers/net/3c507.c
... | ... | @@ -932,7 +932,7 @@ |
932 | 932 | MODULE_PARM_DESC(io, "EtherLink16 I/O base address"); |
933 | 933 | MODULE_PARM_DESC(irq, "(ignored)"); |
934 | 934 | |
935 | -int init_module(void) | |
935 | +int __init init_module(void) | |
936 | 936 | { |
937 | 937 | if (io == 0) |
938 | 938 | printk("3c507: You should not use auto-probing with insmod!\n"); |
drivers/net/3c523.c
drivers/net/3c527.c