Skip to contentSkip to conversation

Fix compile error when CONFIG_XEN_PCIDEV_FRONTEND=m

PATCH In review Konrad Rzeszutek Wilk 2 participants 2 messages Nov 18, 2009 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compile error when CONFIG_XEN_PCIDEV_FRONTEND=m

These errors show up when that is defined:
xen-pcifront.c:261: error: redefinition of 'pci_frontend_enable_msix' xen/pci.h:53: error: previous definition of 'pci_frontend_enable_msix' was here xen-pcifront.c:310: error: redefinition of 'pci_frontend_disable_msix' pci.h:56: error: previous definition of 'pci_frontend_disable_msix' was here xen-pcifront.c:330: error: redefinition of 'pci_frontend_enable_msi' pci.h:47: error: previous definition of 'pci_frontend_enable_msi' was here xen-pcifront.c:354: error: redefinition of 'pci_frontend_disable_msi' pci.h:50: error: previous definition of 'pci_frontend_disable_msi' was here

---
 drivers/pci/Kconfig |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/pci/Kconfig +1 -2
index 3a858a8..4a658b1 100644
@@ -52,11 +52,10 @@ config PCI_STUB
 	  When in doubt, say N.
 
 config XEN_PCIDEV_FRONTEND
-        tristate "Xen PCI Frontend"
+        bool "Xen PCI Frontend"
         depends on XEN && PCI && X86_64
         select HOTPLUG
 	select XEN_XENBUS_FRONTEND
-	default y
         help
           The PCI device frontend driver allows the kernel to import arbitrary
           PCI devices from a PCI backend to support PCI driver domains.
Signature · 1 line
1.6.2.5
#1 lore raw
Quoted 14 lines · Konrad Rzeszutek Wilk
drivers/pci/Kconfig +0 -0
index 3a858a8..4a658b1 100644
@@ -52,11 +52,10 @@ config PCI_STUB
 	  When in doubt, say N.
 

config XEN_PCIDEV_FRONTEND

drivers/pci/Kconfig +1 -1
-        tristate "Xen PCI Frontend"
+        bool "Xen PCI Frontend"
        depends on XEN && PCI && X86_64
        select HOTPLUG

select XEN_XENBUS_FRONTEND

drivers/pci/Kconfig config PCI_STUB · line 61

Quoted 4 lines
drivers/pci/Kconfig +0 -1
-	default y
        help
          The PCI device frontend driver allows the kernel to import arbitrary
          PCI devices from a PCI backend to support PCI driver domains.

This doesn't really fix the problem, it just avoids it. I think it would be better to isolate the cause and adjust things so it is possible for this to be built as a module.

Michael Young