[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: config dependency in stable-2.6.32.x



On Thu, 6 May 2010, M A Young wrote:

I was building a kernel and got the error
drivers/built-in.o: In function `do_hvm_suspend':
/builddir/build/BUILD/kernel-2.6.32/linux-2.6.32.x86_64/drivers/xen/manage.c:124: undefined reference to `xenbus_suspend' /builddir/build/BUILD/kernel-2.6.32/linux-2.6.32.x86_64/drivers/xen/manage.c:138: undefined reference to `xenbus_resume'

As manage.c is built if CONFIG_XEN is selected and the do_hvm_suspend code segment is active if CONFIG_PM_SLEEP (which is on by default) is selected, this means that the current kernel won't build in this case unless CONFIG_XEN_XENBUS_FRONTEND=y as well to supply the xenbus references.

The attached patch is a quick fix for the problem as CONFIG_XEN_XENBUS_FRONTEND can't be set directly. Having done this I get the error below so it looks like there are some problems with the XEN_PLATFORM_PCI code (I was building it with CONFIG_XEN_PLATFORM_PCI=m ).

        Michael Young

drivers/xen/platform-pci.c:50: error: redefinition of 'alloc_xen_mmio' include/xen/platform_pci.h:38: note: previous definition of 'alloc_xen_mmio' was here drivers/xen/platform-pci.c:94: error: redefinition of 'platform_pci_disable_irq' include/xen/platform_pci.h:43: note: previous definition of 'platform_pci_disable_irq' was here drivers/xen/platform-pci.c:100: error: redefinition of 'platform_pci_enable_irq' include/xen/platform_pci.h:44: note: previous definition of 'platform_pci_enable_irq' was here drivers/xen/platform-pci.c:106: error: redefinition of 'platform_pci_resume' include/xen/platform_pci.h:42: note: previous definition of 'platform_pci_resume' was here
make[2]: *** [drivers/xen/platform-pci.o] Error 1

Attachment: xenbuild.patch
Description: Text document

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.