diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-12-31 14:46:27 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-01-06 10:07:30 -0500 |
commit | b7ef4a6dd35d1b47db72fbd1a31c8fd0da7a74f3 (patch) | |
tree | 1d35535328c215669e08b0e8fc6bfb2f4f47466e /drivers/xen | |
parent | 9346c2a8defab777d1fba6bcc284f6ada181fe96 (diff) |
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>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/pci.c b/drivers/xen/pci.c index 188825122aae..dd9c249ea311 100644 --- a/drivers/xen/pci.c +++ b/drivers/xen/pci.c | |||
@@ -26,7 +26,9 @@ | |||
26 | #include <asm/xen/hypervisor.h> | 26 | #include <asm/xen/hypervisor.h> |
27 | #include <asm/xen/hypercall.h> | 27 | #include <asm/xen/hypercall.h> |
28 | #include "../pci/pci.h" | 28 | #include "../pci/pci.h" |
29 | #ifdef CONFIG_PCI_MMCONFIG | ||
29 | #include <asm/pci_x86.h> | 30 | #include <asm/pci_x86.h> |
31 | #endif | ||
30 | 32 | ||
31 | static bool __read_mostly pci_seg_supported = true; | 33 | static bool __read_mostly pci_seg_supported = true; |
32 | 34 | ||