Commit a7e09d450b2e0b068e850d103b6ee1af537d1910
1 parent
ba61ca4aab
Exists in
master
and in
6 other branches
ACPI: APEI build fix
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>
Showing 2 changed files with 4 additions and 2 deletions Side-by-side Diff
drivers/acpi/bus.c
... | ... | @@ -544,10 +544,8 @@ |
544 | 544 | capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT; |
545 | 545 | #endif |
546 | 546 | |
547 | -#ifdef CONFIG_ACPI_APEI_GHES | |
548 | 547 | if (!ghes_disable) |
549 | 548 | capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_APEI_SUPPORT; |
550 | -#endif | |
551 | 549 | if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle))) |
552 | 550 | return; |
553 | 551 | if (ACPI_SUCCESS(acpi_run_osc(handle, &context))) { |
include/acpi/apei.h