From: Sam Ravnborg <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- drivers/net/de620.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/net/de620.c~de620-fix-section-mismatch-warning drivers/net/de620.c --- devel/drivers/net/de620.c~de620-fix-section-mismatch-warning 2006-03-08 00:05:57.000000000 -0800 +++ devel-akpm/drivers/net/de620.c 2006-03-08 00:05:57.000000000 -0800 @@ -1012,7 +1012,7 @@ static int __init read_eeprom(struct net #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)) _ - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html