netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2.6.25-rc3] smc91x section fix
@ 2008-02-25  3:34 David Brownell
  2008-02-25  6:02 ` Sam Ravnborg
  0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2008-02-25  3:34 UTC (permalink / raw)
  To: nico, netdev

Section fixup:

WARNING: drivers/net/built-in.o(.text+0x1a2c): Section mismatch
	in reference from the function smc_drv_probe()
	to the function .init.text:smc_probe()
The function smc_drv_probe() references
the function __init smc_probe().
This is often because smc_drv_probe lacks a __init
annotation or the annotation of smc_probe is wrong.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
 drivers/net/smc91x.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/smc91x.c	2008-02-24 18:50:32.000000000 -0800
+++ b/drivers/net/smc91x.c	2008-02-24 19:16:29.000000000 -0800
@@ -2121,7 +2121,7 @@ static void smc_release_datacs(struct pl
  *	0 --> there is a device
  *	anything else, error
  */
-static int smc_drv_probe(struct platform_device *pdev)
+static int __init smc_drv_probe(struct platform_device *pdev)
 {
 	struct net_device *ndev;
 	struct resource *res, *ires;

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-25 20:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25  3:34 [patch 2.6.25-rc3] smc91x section fix David Brownell
2008-02-25  6:02 ` Sam Ravnborg
2008-02-25  6:33   ` David Brownell
2008-02-25 20:11     ` Sam Ravnborg
2008-04-19  3:01     ` [RESEND/UPDATED patch 2.6.25] " David Brownell
2008-04-25  6:02       ` Jeff Garzik
2008-07-25 20:11       ` David Brownell

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