diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-12-31 20:46:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 11:33:51 -0800 |
commit | 0c51097273237d079ef67aa819e904e484e382ca (patch) | |
tree | 409f99b9eaf88fa38deaf7f9a8c51e8808ab2b12 /drivers/xen | |
parent | 921ce180818a8a3b52fbe02e747695d51a46f5e1 (diff) | |
download | lwn-0c51097273237d079ef67aa819e904e484e382ca.tar.gz lwn-0c51097273237d079ef67aa819e904e484e382ca.zip |
xen/pci: Fix build on non-x86
commit b7ef4a6dd35d1b47db72fbd1a31c8fd0da7a74f3 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 @@ #include <asm/xen/hypervisor.h> #include <asm/xen/hypercall.h> #include "../pci/pci.h" +#ifdef CONFIG_PCI_MMCONFIG #include <asm/pci_x86.h> +#endif static bool __read_mostly pci_seg_supported = true; |