Skip to content

Commit

Permalink
[PATCH] hp ethernet: fix section mismatches
Browse files Browse the repository at this point in the history
Priority: not critical; makes init code discardable.

Fix section mismatch warnings:
WARNING: drivers/net/hp-plus.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x387) and 'cleanup_card'
WARNING: drivers/net/hp.o - Section mismatch: reference to .init.data: from .text between 'hp_init_card' (at offset 0x310) and 'init_module'
WARNING: drivers/net/hp.o - Section mismatch: reference to .init.text: from .text between 'init_module' (at offset 0x367) and 'cleanup_card'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Randy Dunlap authored and Jeff Garzik committed Jun 11, 2006
1 parent 5d1f16c commit 29f9f6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/hp-plus.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ MODULE_LICENSE("GPL");

/* This is set up so that only a single autoprobe takes place per call.
ISA device autoprobes on a running machine are not recommended. */
int
int __init
init_module(void)
{
struct net_device *dev;
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/hp.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ hp_block_output(struct net_device *dev, int count,
}

/* This function resets the ethercard if something screws up. */
static void
static void __init
hp_init_card(struct net_device *dev)
{
int irq = dev->irq;
Expand All @@ -409,7 +409,7 @@ MODULE_LICENSE("GPL");

/* This is set up so that only a single autoprobe takes place per call.
ISA device autoprobes on a running machine are not recommended. */
int
int __init
init_module(void)
{
struct net_device *dev;
Expand Down

0 comments on commit 29f9f6d

Please sign in to comment.