[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] xen/pci: gate APEI support on ARM

commit 4b88b4bf21afedb5408860430e1d943aa386e0fb
Author:     Rahul Singh <rahul.singh@xxxxxxx>
AuthorDate: Mon Oct 4 12:51:56 2021 +0100
Commit:     Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>
CommitDate: Mon Oct 4 17:39:59 2021 -0700

    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 <rahul.singh@xxxxxxx>
    Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
 xen/drivers/passthrough/pci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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(
+/* APEI not supported on ARM yet. */
+#if defined(CONFIG_ACPI) && defined(CONFIG_X86)
 #include <acpi/acpi.h>
 #include <acpi/apei.h>
generated by git-patchbot for /home/xen/git/xen.git#staging



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.