[lkml]   [2008]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[patch] fix 3c515.c:(.text+0x57200): undefined reference to `pnp_get_resource'
commit 2538003ce2ea0b936d273692bc4e51c5b52fe70d
Author: Ingo Molnar <>
Date: Fri Jun 20 11:29:31 2008 +0200

fix 3c515.c:(.text+0x57200): undefined reference to `pnp_get_resource'

-tip testing found the following build failure:

drivers/built-in.o: In function `corkscrew_setup':
3c515.c:(.text+0x57200): undefined reference to `pnp_get_resource'

which happens if 3c515.c is build without CONFIG_PNP:

the reason is pnp_irq() use outside of its __ISAPNP__ section.

corkscrew_setup() always called with NULL in the !__ISAPNP__ case, but
also check this condition to make sure.

Signed-off-by: Ingo Molnar <>

diff --git a/drivers/net/3c515.c b/drivers/net/3c515.c
index 105a8c7..09dd063 100644
--- a/drivers/net/3c515.c
+++ b/drivers/net/3c515.c
@@ -573,7 +573,12 @@ static int corkscrew_setup(struct net_device *dev, int ioaddr,

if (idev) {
+#ifdef __ISAPNP__
irq = pnp_irq(idev, 0);
+ /* Can not happen - in the !PNP case we always pass in NULL */
+ BUG_ON(1);
vp->dev = &idev->dev;
} else {
irq = inw(ioaddr + 0x2002) & 15;

 \ /
  Last update: 2008-06-20 11:37    [W:0.032 / U:4.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site