Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] de620: fix section mismatch warning

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>

authored by

Sam Ravnborg and committed by
Jeff Garzik
b2cba5b5 28beaf65

+1 -1
+1 -1
drivers/net/de620.c
··· 1012 1012 #ifdef MODULE 1013 1013 static struct net_device *de620_dev; 1014 1014 1015 - int init_module(void) 1015 + int __init init_module(void) 1016 1016 { 1017 1017 de620_dev = de620_probe(-1); 1018 1018 if (IS_ERR(de620_dev))