* [IOC3] Fix section missmatch
@ 2008-03-08 16:58 Ralf Baechle
2008-03-17 12:13 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Ralf Baechle @ 2008-03-08 16:58 UTC (permalink / raw)
To: Jeff Garzik, Andrew Morton, netdev, linux-mips
LD drivers/net/built-in.o
WARNING: drivers/net/built-in.o(.text+0x3468): Section mismatch in reference fro
m the function ioc3_probe() to the function .devinit.text:ioc3_serial_probe()
The function ioc3_probe() references
the function __devinit ioc3_serial_probe().
This is often because ioc3_probe lacks a __devinit
annotation or the annotation of ioc3_serial_probe is wrong.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---
Resend, this time with Jeff's address corrected.
diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c
index 373f72c..1f25263 100644
--- a/drivers/net/ioc3-eth.c
+++ b/drivers/net/ioc3-eth.c
@@ -1221,7 +1221,8 @@ static void __devinit ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3)
}
#endif
-static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
+static int __devinit ioc3_probe(struct pci_dev *pdev,
+ const struct pci_device_id *ent)
{
unsigned int sw_physid1, sw_physid2;
struct net_device *dev = NULL;
----- End forwarded message -----
Ralf
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [IOC3] Fix section missmatch
2008-03-08 16:58 [IOC3] Fix section missmatch Ralf Baechle
@ 2008-03-17 12:13 ` Jeff Garzik
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2008-03-17 12:13 UTC (permalink / raw)
To: Ralf Baechle; +Cc: Andrew Morton, netdev, linux-mips
Ralf Baechle wrote:
> LD drivers/net/built-in.o
> WARNING: drivers/net/built-in.o(.text+0x3468): Section mismatch in reference fro
> m the function ioc3_probe() to the function .devinit.text:ioc3_serial_probe()
> The function ioc3_probe() references
> the function __devinit ioc3_serial_probe().
> This is often because ioc3_probe lacks a __devinit
> annotation or the annotation of ioc3_serial_probe is wrong.
>
> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
>
> ---
> Resend, this time with Jeff's address corrected.
applied
^ permalink raw reply [flat|nested] 3+ messages in thread
* [IOC3] Fix section missmatch
@ 2008-03-08 16:56 Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2008-03-08 16:56 UTC (permalink / raw)
To: jgarik, Andrew Morton, netdev, linux-mips
LD drivers/net/built-in.o
WARNING: drivers/net/built-in.o(.text+0x3468): Section mismatch in reference fro
m the function ioc3_probe() to the function .devinit.text:ioc3_serial_probe()
The function ioc3_probe() references
the function __devinit ioc3_serial_probe().
This is often because ioc3_probe lacks a __devinit
annotation or the annotation of ioc3_serial_probe is wrong.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/drivers/net/ioc3-eth.c b/drivers/net/ioc3-eth.c
index 373f72c..1f25263 100644
--- a/drivers/net/ioc3-eth.c
+++ b/drivers/net/ioc3-eth.c
@@ -1221,7 +1221,8 @@ static void __devinit ioc3_serial_probe(struct pci_dev *pdev, struct ioc3 *ioc3)
}
#endif
-static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
+static int __devinit ioc3_probe(struct pci_dev *pdev,
+ const struct pci_device_id *ent)
{
unsigned int sw_physid1, sw_physid2;
struct net_device *dev = NULL;
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-17 12:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-08 16:58 [IOC3] Fix section missmatch Ralf Baechle
2008-03-17 12:13 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2008-03-08 16:56 Ralf Baechle
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).