Skip to content

Commit

Permalink
[PATCH] 82596 section fixes
Browse files Browse the repository at this point in the history
WARNING: drivers/net/82596.o - Section mismatch: reference to .init.text:i82596_probe from .text between 'init_module' (at offset 0x141) and 'i596_add_cmd'

Also nail a couple of crazy inlines.

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 41ace18 commit 864fe05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/net/82596.c
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ static inline int i596_rx(struct net_device *dev)
}


static inline void i596_cleanup_cmd(struct net_device *dev, struct i596_private *lp)
static void i596_cleanup_cmd(struct net_device *dev, struct i596_private *lp)
{
struct i596_cmd *ptr;

Expand Down Expand Up @@ -932,7 +932,8 @@ static inline void i596_cleanup_cmd(struct net_device *dev, struct i596_private
lp->scb.cmd = I596_NULL;
}

static inline void i596_reset(struct net_device *dev, struct i596_private *lp, int ioaddr)
static void i596_reset(struct net_device *dev, struct i596_private *lp,
int ioaddr)
{
unsigned long flags;

Expand Down Expand Up @@ -1578,7 +1579,7 @@ static int debug = -1;
module_param(debug, int, 0);
MODULE_PARM_DESC(debug, "i82596 debug mask");

int init_module(void)
int __init init_module(void)
{
if (debug >= 0)
i596_debug = debug;
Expand All @@ -1588,7 +1589,7 @@ int init_module(void)
return 0;
}

void cleanup_module(void)
void __exit cleanup_module(void)
{
unregister_netdev(dev_82596);
#ifdef __mc68000__
Expand Down

0 comments on commit 864fe05

Please sign in to comment.