ACPI: APEI build fix
authorLen Brown <len.brown@intel.com>
Sat, 16 Jul 2011 22:14:21 +0000 (18:14 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 3 Aug 2011 15:15:59 +0000 (11:15 -0400)
as GHES is optional...

When # CONFIG_ACPI_APEI_GHES is not set:

(.init.text+0x4c22): undefined reference to `ghes_disable'

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bus.c
include/acpi/apei.h

index 43ce3b0c492191e7f2a8406f937234738744c8e8..437ddbf0c49abbd521dde72eae7011c5e4d3672f 100644 (file)
@@ -544,10 +544,8 @@ static void acpi_bus_osc_support(void)
        capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT;
 #endif
 
-#ifdef CONFIG_ACPI_APEI_GHES
        if (!ghes_disable)
                capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_APEI_SUPPORT;
-#endif
        if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
                return;
        if (ACPI_SUCCESS(acpi_run_osc(handle, &context))) {
index d40bc5521fcb31d55dafa2d87912e88fd9d71bc3..51a527d24a8a8b03879dfaa3b059d59d32c8991b 100644 (file)
 
 extern int hest_disable;
 extern int erst_disable;
+#ifdef CONFIG_ACPI_APEI_GHES
 extern int ghes_disable;
+#else
+#define ghes_disable 1
+#endif
 
 #ifdef CONFIG_ACPI_APEI
 void __init acpi_hest_init(void);