[2,6 patch] sunhme.c:quattro_pci_find() must be __devinit

STALE6982d

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

[2,6 patch] sunhme.c:quattro_pci_find() must be __devinit

From: Adrian Bunk <hidden>
Date: 2007-07-10 12:47:27

This patch fixes the following section mismatch:

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x272f8b): Section mismatch: reference to .init.text:quattro_pci_find (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove')
...

<--  snip  -->

Signed-off-by: Adrian Bunk <redacted>

---
--- linux-2.6.22-rc6-mm1/drivers/net/sunhme.c.old	2007-07-10 04:41:59.000000000 +0200
+++ linux-2.6.22-rc6-mm1/drivers/net/sunhme.c	2007-07-10 04:42:56.000000000 +0200
@@ -2625,7 +2625,7 @@
 #endif /* CONFIG_SBUS */
 
 #ifdef CONFIG_PCI
-static struct quattro * __init quattro_pci_find(struct pci_dev *pdev)
+static struct quattro * __devinit quattro_pci_find(struct pci_dev *pdev)
 {
 	struct pci_dev *bdev = pdev->bus->self;
 	struct quattro *qp;

Re: [2,6 patch] sunhme.c:quattro_pci_find() must be __devinit

From: Jeff Garzik <hidden>
Date: 2007-07-10 16:46:15

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

<--  snip  -->

...
  MODPOST vmlinux
WARNING: drivers/built-in.o(.text+0x272f8b): Section mismatch: reference to .init.text:quattro_pci_find (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove')
...

<--  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