From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre POMES Subject: Re: [Xen-devel] Re: xen/stable-2.6.32.x compilation failure in do_hvm_suspend() Date: Fri, 14 May 2010 15:43:01 -0400 Message-ID: <4BEDA7C5.5020406@reservit.com> References: <20100513181058.GF17817@reaktio.net> <4BED8925.8010405@interface-tech.com> <20100514185129.GC17817@reaktio.net> <4BED9C1F.9060207@reservit.com> <20100514191529.GE17817@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100514191529.GE17817@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-users-bounces@lists.xensource.com Errors-To: xen-users-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: Xen-Devel List , chris , Xen-Users List List-Id: xen-devel@lists.xenproject.org Le 2010-05-14 15:15, Pasi K=E4rkk=E4inen a =E9crit : > So it seems I have more stuff as modules.. while Pierre has them static= ally built-in. > I guess that's causing the problem? Or did I overlook something? > =20 Yes I did not take a chance and I compiled all statically to have no=20 initrd problem. You also have XEN_DEBUG_FS, but it should not hurt. If I remember well, the error is: drivers/built-in.o: In function `do_hvm_suspend': /mnt/tmp/linux-2.6-xen/drivers/xen/manage.c:124: undefined reference to = `xenbus_suspend' /mnt/tmp/linux-2.6-xen/drivers/xen/manage.c:138: undefined reference to = `xenbus_resume' These 2 functions are in drivers/xen/xenbus/xenbus_probe_frontend.c, and=20 you have : CONFIG_XEN_XENBUS_FRONTEND=3Dm On my side, I have: CONFIG_XEN_XENBUS_FRONTEND=3Dy I think this could explain. There is a maybe a dependency problem in=20 CONFIG_*: - the code here (where the compilation fails) is for CONFIG_PM_SLEEP:=20 have a look at the code in drivers/xen/manage.c, the section is in a=20 "#ifdef CONFIG_PM_SLEEP" section. - So if CONFIG_PM_SLEEP is set, CONFIG_XEN_XENBUS_FRONTEND should be=20 compiled statically, and should not be set as a module in config kernel=20 (make menuconfig bug ?) Am I wrong ? Maybe ! I am not a kernel hacker ! Pierre