]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[PATCH] hp ethernet: fix section mismatches
authorRandy Dunlap <rdunlap@xenotime.net>
Sat, 10 Jun 2006 20:32:12 +0000 (13:32 -0700)
committerJeff Garzik <jeff@garzik.org>
Sun, 11 Jun 2006 16:16:01 +0000 (12:16 -0400)
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>
drivers/net/hp-plus.c
drivers/net/hp.c

index 0d7a6250e3462907180190aef6c2e6fdc46c7aa4..e26a3e407d706d941c2c3f758747b8270289802d 100644 (file)
@@ -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;
index cf9fb3698a6bda38f8ac83f96b9cdad39b986fd8..551a71b3c5fd825de937fb56f542a7f339fae414 100644 (file)
@@ -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;
@@ -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;