From mboxrd@z Thu Jan 1 00:00:00 1970 From: liang tang Subject: Re: devel/acpi-cpufreq.v3: arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel' Date: Tue, 25 Oct 2011 11:55:45 +0800 Message-ID: <4EA63341.5040400@oracle.com> References: <104105990.20111023132901@eikelenboom.it> <20111024125833.GA19142@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080903070408070900050609" Return-path: In-Reply-To: <20111024125833.GA19142@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: Sander Eikelenboom , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------080903070408070900050609 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi,Sander would you mind to try this patch(in the attach file ). thank you very much! On 2011-10-24 20:58, Konrad Rzeszutek Wilk wrote: > On Sun, Oct 23, 2011 at 01:29:01PM +0200, Sander Eikelenboom wrote: >> Hi Konrad, >> >> I tried to compile a kernel based on your latest "linux-next" tree (which seems to work fine), >> and the "devel/acpi-cpufreq.v3" branch pulled in. This fails with a compile error: > Hmm, OK, Liang, any ideas? >> CC drivers/usb/storage/sierra_ms.o >> CC drivers/xen/pci.o >> CC drivers/video/efifb.o >> CC drivers/usb/storage/option_ms.o >> CC drivers/video/output.o >> CC drivers/xen/acpi.o >> CC drivers/xen/acpi_processor.o >> LD drivers/xen/xen-evtchn.o >> LD drivers/xen/xen-gntdev.o >> LD drivers/xen/xen-gntalloc.o >> LD drivers/video/fb.o >> LD drivers/usb/storage/usb-storage.o >> LD drivers/usb/storage/usb-libusual.o >> LD drivers/video/built-in.o >> LD drivers/usb/storage/built-in.o >> LD drivers/usb/built-in.o >> LD drivers/xen/built-in.o >> LD drivers/built-in.o >> LD vmlinux.o >> MODPOST vmlinux.o >> GEN .version >> CHK include/generated/compile.h >> UPD include/generated/compile.h >> CC init/version.o >> LD init/built-in.o >> LD .tmp_vmlinux1 >> arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel' >> make: *** [.tmp_vmlinux1] Error 1 >> >> -- >> >> Sander --------------080903070408070900050609 Content-Type: text/plain; name="0001-fixed-the-acpi-sleep-disable-complied-bug.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-fixed-the-acpi-sleep-disable-complied-bug.patch" >>From a7d4508949cc19fd6ade9ab5efbe05ae8e842baf Mon Sep 17 00:00:00 2001 From: Tang Liang Date: Tue, 25 Oct 2011 11:51:49 +0800 Subject: [PATCH] fixed the acpi sleep disable complied bug this is a template patch for complied bug --- arch/x86/kernel/acpi/boot.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index ddd081b..0c3068f 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c @@ -557,7 +557,12 @@ int (*__acpi_override_sleep)(u8 sleep_state, u32 pm1a_ctrl, u32 pm1b_ctrl, bool *skip_rest) \ __attribute__ ((unused)) = NULL; +#ifdef CONFIG_ACPI_SLEEP int (*acpi_suspend_lowlevel)(void) = x86_acpi_suspend_lowlevel; +#else +int (*acpi_suspend_lowlevel)(void); +#endif + /* * success: return IRQ number (>=0) * failure: return < 0 -- 1.7.6 --------------080903070408070900050609 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 --------------080903070408070900050609--