build error at include/linux/pci-acpi.h:39

From: Alexander Beregalov
Date: Sun Jan 16 2011 - 07:30:03 EST


Hi

kernel is v2.6.37-7733-g1b59be2

In file included from drivers/pci/pcie/aer/aerdrv.c:21:
include/linux/pci-acpi.h:39: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'acpi_find_root_bridge_handle'

CONFIG_ACPI is not set
Perhaps .config is meaningless, it was generated by randconfig.

include/linux/pci-acpi.h:
11 #include <linux/acpi.h>
12
13 #ifdef CONFIG_ACPI
<..>
38 #else
39 static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
40 { return NULL; }
41 #endif

acpi_handle is not defined

include/linux/acpi.h:
30 #ifdef CONFIG_ACPI
<..>
39 #include <acpi/acpi.h>


Perhaps

diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h
index 479d9bb..09b5835 100644
--- a/include/linux/pci-acpi.h
+++ b/include/linux/pci-acpi.h
@@ -9,6 +9,7 @@
#define _PCI_ACPI_H_

#include <linux/acpi.h>
+#include <acpi/acpi.h>

#ifdef CONFIG_ACPI
extern acpi_status pci_acpi_add_bus_pm_notifier(struct acpi_device *dev,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/