Skip to content

Commit

Permalink
[WAN]: fix section mismatch warning in sbni
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Mar 21, 2006
1 parent e3968fc commit 471a24c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wan/sbni.c
Original file line number Diff line number Diff line change
Expand Up @@ -1495,8 +1495,7 @@ module_param(skip_pci_probe, bool, 0);
MODULE_LICENSE("GPL");


int
init_module( void )
int __init init_module( void )
{
struct net_device *dev;
int err;
Expand Down

0 comments on commit 471a24c

Please sign in to comment.