mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, Jeff Garzik <jgarzik@redhat.com>,
	netdev@vger.kernel.org
Subject: Re: [patch] fix 3c515.c:(.text+0x57200): undefined reference to `pnp_get_resource'
Date: Fri, 20 Jun 2008 08:13:52 -0700	[thread overview]
Message-ID: <20080620081352.6cb4f9df.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20080620093316.GA19003@elte.hu>

On Fri, 20 Jun 2008 11:33:16 +0200 Ingo Molnar wrote:

> commit 2538003ce2ea0b936d273692bc4e51c5b52fe70d
> Author: Ingo Molnar <mingo@elte.hu>
> 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:
>     
>       http://redhat.com/~mingo/misc/config-Fri_Jun_20_10_02_43_CEST_2008.bad
>     
>     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 <mingo@elte.hu>

Patch is in Jeff's tree.

Sometimes we need to have build patches merged sooner rather than later... :(


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


---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

  reply	other threads:[~2008-06-20 15:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-20  9:33 Ingo Molnar
2008-06-20 15:13 ` Randy Dunlap [this message]
2008-06-20 15:51   ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080620081352.6cb4f9df.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=jgarzik@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome