WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Please test xen/stable-2.6.32.x in xen.git

On Thu, Apr 01, 2010 at 02:55:45PM -0300, Martinx - ジェームズ wrote:
> Hi!
> 
>  I can't compile it:
> 
>   CC      drivers/pci/xen-pcifront.o
> drivers/pci/xen-pcifront.c:373: error: variable ‘pci_frontend_ops’ has
> initializer but incomplete type
> drivers/pci/xen-pcifront.c:374: error: unknown field ‘enable_msi’ specified
> in initializer
> drivers/pci/xen-pcifront.c:374: warning: excess elements in struct
> initializer
> drivers/pci/xen-pcifront.c:374: warning: (near initialization for
> ‘pci_frontend_ops’)
> drivers/pci/xen-pcifront.c:375: error: unknown field ‘disable_msi’ specified
> in initializer
> drivers/pci/xen-pcifront.c:375: warning: excess elements in struct
> initializer
> drivers/pci/xen-pcifront.c:375: warning: (near initialization for
> ‘pci_frontend_ops’)
> drivers/pci/xen-pcifront.c:376: error: unknown field ‘enable_msix’ specified
> in initializer
> drivers/pci/xen-pcifront.c:376: warning: excess elements in struct
> initializer
> drivers/pci/xen-pcifront.c:376: warning: (near initialization for
> ‘pci_frontend_ops’)
> drivers/pci/xen-pcifront.c:377: error: unknown field ‘disable_msix’
> specified in initializer
> drivers/pci/xen-pcifront.c:377: warning: excess elements in struct
> initializer
> drivers/pci/xen-pcifront.c:377: warning: (near initialization for
> ‘pci_frontend_ops’)
> drivers/pci/xen-pcifront.c: In function ‘pci_frontend_registrar’:
> drivers/pci/xen-pcifront.c:383: error: ‘xen_pci_frontend’ undeclared (first
> use in this function)
> drivers/pci/xen-pcifront.c:383: error: (Each undeclared identifier is
> reported only once
> drivers/pci/xen-pcifront.c:383: error: for each function it appears in.)
> make[2]: *** [drivers/pci/xen-pcifront.o] Error 1
> make[1]: *** [drivers/pci] Error 2
> make: *** [drivers] Error 2

I have this fixed in the pv/pcifront-2.6.33 branch but forgot to
back-port. This is what I think you need:

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index 7802fcd..831365d 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -53,7 +53,7 @@ config PCI_STUB
 
 config XEN_PCIDEV_FRONTEND
         tristate "Xen PCI Frontend"
-        depends on XEN && PCI && X86
+        depends on X86 && XEN_PCI_PASSTHROUGH
         select HOTPLUG
        select XEN_XENBUS_FRONTEND
        default y

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel