From: Randy Dunlap <randy.dunlap@oracle.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: linux-next@vger.kernel.org, lkml <linux-kernel@vger.kernel.org>
Subject: Re: linux-next build error (PNP/IXJ)
Date: Tue, 22 Jul 2008 12:52:41 -0700 [thread overview]
Message-ID: <20080722125241.8fb696b1.randy.dunlap@oracle.com> (raw)
In-Reply-To: <200807221157.14371.bjorn.helgaas@hp.com>
On Tue, 22 Jul 2008 11:57:13 -0600 Bjorn Helgaas wrote:
> On Tuesday 22 July 2008 11:27:39 am Randy Dunlap wrote:
> > I'm seeing several build errors in linux-next-20080722 that I haven't
> > seen previously, although I don't know what changed to cause this.
> >
> > They are all basically the same, in ixj (drivers/telephony/ixj*), when
> > CONFIG_PNP=n, and CONFIG_PHONE_IXJ=y or =m (so the actual error message
> > varies depending on IXJ=y or =m):
> >
> > IXJ=y:
> > ixj.c:(.text+0x329d98): undefined reference to `pnp_get_resource'
> > or IXJ=m:
> > ERROR: "pnp_get_resource" [drivers/telephony/ixj.ko] undefined!
> >
> >
> > Suggestions?
>
> I'd use something like the attached. I don't have a build environment
> where CONFIG_PNP=n (all I have is x86 and ia64), so I haven't tested
> this.
>
> ixj: don't use PNP interfaces when CONFIG_PNP=n
>
> This patch fixes a build problem when CONFIG_PNP=n.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
>
> diff --git a/drivers/telephony/ixj.c b/drivers/telephony/ixj.c
> index 49cd979..51b7fb4 100644
> --- a/drivers/telephony/ixj.c
> +++ b/drivers/telephony/ixj.c
> @@ -7588,6 +7588,7 @@ static IXJ *new_ixj(unsigned long port)
>
> static int __init ixj_probe_isapnp(int *cnt)
> {
> +#ifdef CONFIG_PNP
> int probe = 0;
> int func = 0x110;
> struct pnp_dev *dev = NULL, *old_dev = NULL;
> @@ -7664,6 +7665,9 @@ static int __init ixj_probe_isapnp(int *cnt)
> dev = NULL;
> }
> return probe;
> +#else
> + return 0;
> +#endif
> }
>
> static int __init ixj_probe_isa(int *cnt)
> --
Thanks.
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/
prev parent reply other threads:[~2008-07-22 19:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-22 17:27 Randy Dunlap
2008-07-22 17:39 ` Adrian Bunk
2008-07-22 19:41 ` Randy Dunlap
2008-07-22 20:19 ` Adrian Bunk
2008-07-22 20:32 ` Randy Dunlap
2008-07-22 17:57 ` Bjorn Helgaas
2008-07-22 19:52 ` Randy Dunlap [this message]
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=20080722125241.8fb696b1.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=bjorn.helgaas@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@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
all inboxes | Powered by JetHome®