Skip to content

Commit

Permalink
[PATCH] smctr section fix
Browse files Browse the repository at this point in the history
WARNING: drivers/net/tokenring/smctr.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x2ba0) and 'smctr_reset_adapter'
WARNING: drivers/net/tokenring/smctr.o - Section mismatch: reference to .init.text:smctr_probe from .text between 'init_module' (at offset 0x2bf4) and 'smctr_reset_adapter'

Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Aug 19, 2006
1 parent 6d2cdb4 commit daca7cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/tokenring/smctr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5666,7 +5666,7 @@ module_param_array(io, int, NULL, 0);
module_param_array(irq, int, NULL, 0);
module_param(ringspeed, int, 0);

static struct net_device *setup_card(int n)
static struct net_device * __init setup_card(int n)
{
struct net_device *dev = alloc_trdev(sizeof(struct net_local));
int err;
Expand Down Expand Up @@ -5696,9 +5696,8 @@ static struct net_device *setup_card(int n)
free_netdev(dev);
return ERR_PTR(err);
}


int init_module(void)
int __init init_module(void)
{
int i, found = 0;
struct net_device *dev;
Expand Down

0 comments on commit daca7cd

Please sign in to comment.