Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29f9f6d2 authored by Randy Dunlap's avatar Randy Dunlap Committed by Jeff Garzik
Browse files

[PATCH] hp ethernet: fix section mismatches



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: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 5d1f16c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -446,7 +446,7 @@ MODULE_LICENSE("GPL");


/* This is set up so that only a single autoprobe takes place per call.
/* This is set up so that only a single autoprobe takes place per call.
ISA device autoprobes on a running machine are not recommended. */
ISA device autoprobes on a running machine are not recommended. */
int
int __init
init_module(void)
init_module(void)
{
{
	struct net_device *dev;
	struct net_device *dev;
+2 −2
Original line number Original line Diff line number Diff line
@@ -384,7 +384,7 @@ hp_block_output(struct net_device *dev, int count,
}
}


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


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