From: ykzhao <yakui.zhao@intel.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: "lenb@kernel.org" <lenb@kernel.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"minyard@acm.org" <minyard@acm.org>,
"openipmi-developer@lists.sourceforege.net"
<openipmi-developer@lists.sourceforege.net>
Subject: Re: [PATCH 1/3] ipmi/acpi: Fix the building error in ipmi module
Date: Thu, 17 Dec 2009 09:16:41 +0800 [thread overview]
Message-ID: <1261012601.3732.21.camel@localhost.localdomain> (raw)
In-Reply-To: <200912160852.43206.bjorn.helgaas@hp.com>
On Wed, 2009-12-16 at 23:52 +0800, Bjorn Helgaas wrote:
> On Wednesday 16 December 2009 07:40:29 am yakui.zhao@intel.com wrote:
> > From: Zhao Yakui <yakui.zhao@intel.com>
> >
> > When the IPMI module is selected as module, it will complain the
> > following building error.
> > >ERROR: "pnpacpi_protocol" [drivers/char/ipmi/ipmi_si.ko] undefined!
> >
> > Fix the above building error.
>
> This is already fixed in Len's tree, so we don't need this patch.
Yes. Just now I checked Len's tree and this is already fixed.
Thanks.
>
> > Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
> > cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
> > ---
> > drivers/pnp/pnpacpi/core.c | 7 +++++++
> > include/linux/pnp.h | 11 +++--------
> > 2 files changed, 10 insertions(+), 8 deletions(-)
> >
> > diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
> > index 8dd0f37..8eebbe4 100644
> > --- a/drivers/pnp/pnpacpi/core.c
> > +++ b/drivers/pnp/pnpacpi/core.c
> > @@ -155,6 +155,13 @@ struct pnp_protocol pnpacpi_protocol = {
> > #endif
> > };
> >
> > +struct acpi_device *pnp_acpi_device(struct pnp_dev *dev)
> > +{
> > + if (dev->protocol == &pnpacpi_protocol)
> > + return dev->data;
> > + return NULL;
> > +}
> > +EXPORT_SYMBOL_GPL(pnp_acpi_device);
> > static int __init pnpacpi_add_device(struct acpi_device *device)
> > {
> > acpi_handle temp = NULL;
> > diff --git a/include/linux/pnp.h b/include/linux/pnp.h
> > index 7c4193e..0ae2c64 100644
> > --- a/include/linux/pnp.h
> > +++ b/include/linux/pnp.h
> > @@ -335,16 +335,11 @@ extern struct pnp_protocol pnpbios_protocol;
> > #endif
> >
> > #ifdef CONFIG_PNPACPI
> > -extern struct pnp_protocol pnpacpi_protocol;
> >
> > -static inline struct acpi_device *pnp_acpi_device(struct pnp_dev *dev)
> > -{
> > - if (dev->protocol == &pnpacpi_protocol)
> > - return dev->data;
> > - return NULL;
> > -}
> > +extern struct acpi_device *pnp_acpi_device(struct pnp_dev *dev);
> > #else
> > -#define pnp_acpi_device(dev) 0
> > +static inline struct acpi_device *pnp_acpi_device(struct pnp_dev *dev)
> > +{ return NULL; }
> > #endif
> >
> > /* status */
>
>
prev parent reply other threads:[~2009-12-17 1:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 14:40 [PATCH 1/3] ipmi/acpi: Fix the building error in ipmi module yakui.zhao
2009-12-16 14:40 ` [PATCH 2/3] ipmi/acpi: use ACPI detection mechanism firstly to detect IPMI system interface yakui.zhao
2009-12-16 14:40 ` [PATCH 3/3] ipmi/acpi: Install the IPMI space handler to enable ACPI to access the BMC controller yakui.zhao
2009-12-16 16:40 ` Bjorn Helgaas
2009-12-17 1:52 ` ykzhao
2009-12-17 22:00 ` Bjorn Helgaas
2009-12-18 1:38 ` ykzhao
2009-12-17 3:07 ` ykzhao
2009-12-17 22:54 ` Bjorn Helgaas
2009-12-16 15:52 ` [PATCH 1/3] ipmi/acpi: Fix the building error in ipmi module Bjorn Helgaas
2009-12-17 1:16 ` ykzhao [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=1261012601.3732.21.camel@localhost.localdomain \
--to=yakui.zhao@intel.com \
--cc=bjorn.helgaas@hp.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=minyard@acm.org \
--cc=openipmi-developer@lists.sourceforege.net \
/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