From: Ben Hutchings Date: Tue, 31 Dec 2013 19:46:27 +0000 (+0100) Subject: xen/pci: Fix build on non-x86 X-Git-Tag: next-20140106~22^2^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=545e06eb657dd3f8664938ea2c7a61a1a398478f;p=karo-tx-linux.git xen/pci: Fix build on non-x86 We can't include 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 Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: David Vrabel --- 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 #include #include "../pci/pci.h" +#ifdef CONFIG_PCI_MMCONFIG #include +#endif static bool __read_mostly pci_seg_supported = true;