diff options
author | Randy.Dunlap <rdunlap@xenotime.net> | 2006-06-10 15:13:35 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-11 12:16:01 -0400 |
commit | 5d1f16c6c4d64d1e4f53e277e39c0ada89f00a48 (patch) | |
tree | be867e13fb4d36b740b5a306d965bef900ff3556 /drivers/net | |
parent | 282f33c98618a3877043ec9dd5ac777c5e7c117d (diff) |
[PATCH] Section mismatch in drivers/net/ne.o during modpost
On Sat, 10 Jun 2006 14:11:42 +0200 (MEST) Mikael Pettersson wrote:
> While compiling 2.6.17-rc6 for a 486 with an NE2000 ISA ethernet card, I got:
>
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x158) and 'ne_block_input'
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x176) and 'ne_block_input'
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x183) and 'ne_block_input'
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x1ea) and 'ne_block_input'
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.data:isapnp_clone_list from .text between 'init_module' (at offset 0x251) and 'ne_block_input'
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x266) and 'ne_block_input'
> WARNING: drivers/net/ne.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x29b) and 'ne_block_input'
>
> Not sure how serious this is; the driver seems to work fine later on.
Doesn't look serious. init_module() is not __init, but it calls
some __init functions and touches some __initdata.
BTW, I would be happy to see some consistent results from modpost
section checking. I don't see all of these warnings (I see only 1)
when using gcc 3.3.6. What gcc version are you using?
Does that matter? (not directed at anyone in particular)
Patch below fixes it for me. Please test/report.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ne.c | 2 | ||||
-rw-r--r-- | drivers/net/ne2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ne.c b/drivers/net/ne.c index b32765215f75..963a11fa9fe2 100644 --- a/drivers/net/ne.c +++ b/drivers/net/ne.c | |||
@@ -829,7 +829,7 @@ that the ne2k probe is the last 8390 based probe to take place (as it | |||
829 | is at boot) and so the probe will get confused by any other 8390 cards. | 829 | is at boot) and so the probe will get confused by any other 8390 cards. |
830 | ISA device autoprobes on a running machine are not recommended anyway. */ | 830 | ISA device autoprobes on a running machine are not recommended anyway. */ |
831 | 831 | ||
832 | int init_module(void) | 832 | int __init init_module(void) |
833 | { | 833 | { |
834 | int this_dev, found = 0; | 834 | int this_dev, found = 0; |
835 | 835 | ||
diff --git a/drivers/net/ne2.c b/drivers/net/ne2.c index 2aa7b77f84f8..eebf5f02b476 100644 --- a/drivers/net/ne2.c +++ b/drivers/net/ne2.c | |||
@@ -780,7 +780,7 @@ MODULE_PARM_DESC(bad, "(ignored)"); | |||
780 | 780 | ||
781 | /* Module code fixed by David Weinehall */ | 781 | /* Module code fixed by David Weinehall */ |
782 | 782 | ||
783 | int init_module(void) | 783 | int __init init_module(void) |
784 | { | 784 | { |
785 | struct net_device *dev; | 785 | struct net_device *dev; |
786 | int this_dev, found = 0; | 786 | int this_dev, found = 0; |