From: M A Young Subject: Re: config dependency in stable-2.6.32.x Date: Thu, 6 May 2010 23:02:01 +0100 (BST) Message-ID: References: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-360610822-387722393-1273183322=:3747" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---360610822-387722393-1273183322=:3747 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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 ---360610822-387722393-1273183322=:3747 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=xenbuild.patch Content-Transfer-Encoding: BASE64 Content-Description: Content-Disposition: attachment; filename=xenbuild.patch LS0tIGxpbnV4LTIuNi4zMi54ODZfNjQvYXJjaC94ODYveGVuL0tjb25maWcu b3JpZwkyMDEwLTA1LTA2IDIxOjE0OjU1LjAwMDAwMDAwMCArMDEwMA0KKysr IGxpbnV4LTIuNi4zMi54ODZfNjQvYXJjaC94ODYveGVuL0tjb25maWcJMjAx MC0wNS0wNiAyMjoxMTozMi4wMDAwMDAwMDAgKzAxMDANCkBAIC02LDYgKzYs NyBAQA0KIAlib29sICJYZW4gZ3Vlc3Qgc3VwcG9ydCINCiAJc2VsZWN0IFBB UkFWSVJUDQogCXNlbGVjdCBQQVJBVklSVF9DTE9DSw0KKwlzZWxlY3QgWEVO X1hFTkJVU19GUk9OVEVORA0KIAlkZXBlbmRzIG9uIFg4Nl82NCB8fCAoWDg2 XzMyICYmIFg4Nl9QQUUgJiYgIVg4Nl9WSVNXUykNCiAJZGVwZW5kcyBvbiBY ODZfQ01QWENIRyAmJiBYODZfVFNDDQogCWhlbHANCg== ---360610822-387722393-1273183322=:3747 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ---360610822-387722393-1273183322=:3747--