]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commitdiff
xen/pci: Don't build Xen pci code for ARM and ARM64 centos-dev
authorJulien Grall <julien.grall@citrix.com>
Mon, 28 Sep 2015 13:14:23 +0000 (14:14 +0100)
committerJulien Grall <julien.grall@citrix.com>
Mon, 28 Sep 2015 13:31:24 +0000 (14:31 +0100)
The PCI support for Xen doesn't compile on ARM/ARM64 when
CONFIG_PCI_MMCONFIG=y:

drivers/xen/pci.c:31:25: fatal error: asm/pci_x86.h: No such file or
directory
 #include <asm/pci_x86.h>

Although, Xen is not currently involved in PCI management for ARM/ARM64.
There is plan to support it, but it would require some changes in Linux
side.

For now, introduce a new config options XEN_PCI which will be turned off
for ARM platform.

Reported-by: Robert Richter <robert.richter@caviumnetworks.com>
Signed-off-by: Julien Grall <julien.grall@citrix.com>
---
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: David Vrabel <david.vrabel@citrix.com>
drivers/xen/Kconfig
drivers/xen/Makefile

index 7cd226da15fea2d6985b6203d696a6fe8e0c400f..f4ad2bde8d3960b84eadd505421b0e20ebefa00d 100644 (file)
@@ -168,7 +168,7 @@ config XEN_TMEM
 
 config XEN_PCIDEV_BACKEND
        tristate "Xen PCI-device backend driver"
-       depends on PCI && X86 && XEN
+       depends on XEN_PCI
        depends on XEN_BACKEND
        default m
        help
@@ -189,6 +189,10 @@ config XEN_PCIDEV_BACKEND
 
          If in doubt, say m.
 
+config XEN_PCI
+       def_bool y
+       depends on PCI && !ARM && !ARM64
+
 config XEN_SCSI_BACKEND
        tristate "XEN SCSI backend driver"
        depends on XEN && XEN_BACKEND && TARGET_CORE
index e293bc507cbcb20edbcdc0d3a0807c403de530b3..c9f23b7adfa1fb6511495eb4092a416fef3ec211 100644 (file)
@@ -11,7 +11,7 @@ CFLAGS_features.o                     := $(nostackp)
 
 CFLAGS_efi.o                           += -fshort-wchar
 
-dom0-$(CONFIG_PCI) += pci.o
+dom0-$(CONFIG_XEN_PCI) += pci.o
 dom0-$(CONFIG_USB_SUPPORT) += dbgp.o
 dom0-$(CONFIG_XEN_ACPI) += acpi.o $(xen-pad-y)
 xen-pad-$(CONFIG_X86) += xen-acpi-pad.o