Skip to content

Commit

Permalink
[PATCH] de620: fix section mismatch warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and Jeff Garzik committed Mar 11, 2006
1 parent 28beaf6 commit b2cba5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/de620.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b2cba5b

Please sign in to comment.