* [PATCH] net/hplance: hplance_init() should be __devinit
@ 2011-06-13 18:17 Geert Uytterhoeven
  2011-06-13 22:33 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2011-06-13 18:17 UTC (permalink / raw)
  To: netdev; +Cc: linux-m68k, linux-kernel, Geert Uytterhoeven
WARNING: vmlinux.o(.devinit.text+0x253e): Section mismatch in reference from the function hplance_init_one() to the function .init.text:hplance_init()
The forward declaration had the correct attribute, but the actual function
definition hadn't.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/net/hplance.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/hplance.c b/drivers/net/hplance.c
index b6060f7..a900d5b 100644
--- a/drivers/net/hplance.c
+++ b/drivers/net/hplance.c
@@ -135,7 +135,7 @@ static void __devexit hplance_remove_one(struct dio_dev *d)
 }
 
 /* Initialise a single lance board at the given DIO device */
-static void __init hplance_init(struct net_device *dev, struct dio_dev *d)
+static void __devinit hplance_init(struct net_device *dev, struct dio_dev *d)
 {
         unsigned long va = (d->resource.start + DIO_VIRADDRBASE);
         struct hplance_private *lp;
-- 
1.7.0.4
^ permalink raw reply related	[flat|nested] 2+ messages in thread
* Re: [PATCH] net/hplance: hplance_init() should be __devinit
  2011-06-13 18:17 [PATCH] net/hplance: hplance_init() should be __devinit Geert Uytterhoeven
@ 2011-06-13 22:33 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-06-13 22:33 UTC (permalink / raw)
  To: geert; +Cc: netdev, linux-m68k, linux-kernel
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Mon, 13 Jun 2011 20:17:36 +0200
> WARNING: vmlinux.o(.devinit.text+0x253e): Section mismatch in reference from the function hplance_init_one() to the function .init.text:hplance_init()
> 
> The forward declaration had the correct attribute, but the actual function
> definition hadn't.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Applied, thanks.
^ permalink raw reply	[flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-13 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 18:17 [PATCH] net/hplance: hplance_init() should be __devinit Geert Uytterhoeven
2011-06-13 22:33 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).