diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2006-03-21 01:34:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-21 01:34:52 -0500 |
commit | 471a24c0589cd192dcd2c6770ab6252cd42b1cff (patch) | |
tree | 20f595c10ce6b693cf0f04a8c896809665272f80 /drivers/net/wan | |
parent | e3968fc0f3db58e4c448ec20f66ce6da49d9bc5f (diff) |
[WAN]: fix section mismatch warning in sbni
In latest -mm sbni gives following warning: WARNING:
drivers/net/wan/sbni.o - Section mismatch: reference to \ .init.data:
from .text between 'init_module' (at offset 0x14ef) and \
'cleanup_module'
The warning is caused by init_module() calling a function declared
__init. Declare init_module() __init too to fix warning.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r-- | drivers/net/wan/sbni.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index db2c798ba89e..175ba13bce41 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
@@ -1495,8 +1495,7 @@ module_param(skip_pci_probe, bool, 0); | |||
1495 | MODULE_LICENSE("GPL"); | 1495 | MODULE_LICENSE("GPL"); |
1496 | 1496 | ||
1497 | 1497 | ||
1498 | int | 1498 | int __init init_module( void ) |
1499 | init_module( void ) | ||
1500 | { | 1499 | { |
1501 | struct net_device *dev; | 1500 | struct net_device *dev; |
1502 | int err; | 1501 | int err; |