cper-x86.c calls arch_apei_report_x86_error(), whose declaration is
provided by asm/acpi.h. The declaration is currently available only through
an indirect include when ACPI is enabled, which breaks configurations that
build the CPER decoder without ACPI.

Include asm/acpi.h directly so the dependency is explicit and the decoder
also builds in ACPI-disabled configurations.

Reported-by: [email protected]
Link: 
https://sashiko.dev/#/patchset/20260708-topics-ahmtib01-ras_ffh_arm_internal_review-v7-0-8b3a85216cef%40arm.com?part=7
Signed-off-by: Ahmed Tiba <[email protected]>
---
 drivers/firmware/efi/cper-x86.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/efi/cper-x86.c b/drivers/firmware/efi/cper-x86.c
index 3949d7b5e808..aa9388284e65 100644
--- a/drivers/firmware/efi/cper-x86.c
+++ b/drivers/firmware/efi/cper-x86.c
@@ -3,6 +3,7 @@
 
 #include <linux/cper.h>
 #include <linux/acpi.h>
+#include <asm/acpi.h>
 
 /*
  * We don't need a "CPER_IA" prefix since these are all locally defined.

-- 
2.43.0


Reply via email to