public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ipmi/acpi: Fix the building error in ipmi module
@ 2009-12-16 14:40 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 15:52 ` [PATCH 1/3] ipmi/acpi: Fix the building error in ipmi module Bjorn Helgaas
  0 siblings, 2 replies; 11+ messages in thread
From: yakui.zhao @ 2009-12-16 14:40 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi, minyard, openipmi-developer, Zhao Yakui,
	Bjorn Helgaas

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.

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 */
-- 
1.5.4.5


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

end of thread, other threads:[~2009-12-18  1:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox