[2.6 patch] tokenring/3c359.c:xl_init() must be __devinit

STALE6978d

2 messages, 2 authors, 2007-07-10 · open the first message on its own page

[2.6 patch] tokenring/3c359.c:xl_init() must be __devinit

From: Adrian Bunk <hidden>
Date: 2007-07-10 12:45:03

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x361ef1): Section mismatch: reference to .init.text:xl_init (between 'xl_probe' and 'xl_hw_reset')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <redacted>

---
--- linux-2.6.22-rc6-mm1/drivers/net/tokenring/3c359.c.old	2007-07-10 04:07:19.000000000 +0200
+++ linux-2.6.22-rc6-mm1/drivers/net/tokenring/3c359.c	2007-07-10 04:08:01.000000000 +0200
@@ -363,7 +363,7 @@
 }
 
 
-static int __init xl_init(struct net_device *dev) 
+static int __devinit xl_init(struct net_device *dev) 
 {
     	struct xl_private *xl_priv = (struct xl_private *)dev->priv ;
 

Re: [2.6 patch] tokenring/3c359.c:xl_init() must be __devinit

From: Jeff Garzik <hidden>
Date: 2007-07-10 16:27:08

Adrian Bunk wrote:
This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x361ef1): Section mismatch: reference to .init.text:xl_init (between 'xl_probe' and 'xl_hw_reset')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <redacted>
applied

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help