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

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

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] Re: config dependency in stable-2.6.32.x
From: M A Young <m.a.young@xxxxxxxxxxxx>
Date: Thu, 6 May 2010 23:02:01 +0100 (BST)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 06 May 2010 15:03:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.LFD.2.00.1005062059520.3747@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.LFD.2.00.1005062059520.3747@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (LFD 1167 2008-08-23)
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