From: Rahul Singh Date: Mon, 4 Oct 2021 11:51:56 +0000 (+0100) Subject: xen/pci: gate APEI support on ARM X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~137 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4b88b4bf21afedb5408860430e1d943aa386e0fb;p=xen.git xen/pci: gate APEI support on ARM APEI not supported on ARM yet move the code under CONFIG_X86 flag to gate the code for ARM. This patch is the preparatory work to enable HAS_PCI on ARM to avoid compilation error on ARM. prelink.o: In function `pcie_aer_get_firmware_first’: drivers/passthrough/pci.c:1251: undefined reference to `apei_hest_parse' Signed-off-by: Rahul Singh Acked-by: Stefano Stabellini Acked-by: Jan Beulich Reviewed-by: Bertrand Marquis --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 5456ca3a63..e1b735d9e8 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -1149,7 +1149,8 @@ void __hwdom_init setup_hwdom_pci_devices( pcidevs_unlock(); } -#ifdef CONFIG_ACPI +/* APEI not supported on ARM yet. */ +#if defined(CONFIG_ACPI) && defined(CONFIG_X86) #include #include