Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen/pci: Fix build on non-x86

We can't include <asm/pci_x86.h> if this isn't x86, and we only need
it if CONFIG_PCI_MMCONFIG is enabled.

Fixes: 8deb3eb1461e ('xen/mcfg: Call PHYSDEVOP_pci_mmcfg_reserved for MCFG areas.')
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>

authored by

Ben Hutchings and committed by
Konrad Rzeszutek Wilk
b7ef4a6d 9346c2a8

+2
+2
drivers/xen/pci.c
··· 26 26 #include <asm/xen/hypervisor.h> 27 27 #include <asm/xen/hypercall.h> 28 28 #include "../pci/pci.h" 29 + #ifdef CONFIG_PCI_MMCONFIG 29 30 #include <asm/pci_x86.h> 31 + #endif 30 32 31 33 static bool __read_mostly pci_seg_supported = true; 32 34