All of lore.kernel.org
 help / color / mirror / Atom feed
From: liang tang <liang.tang@oracle.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Sander Eikelenboom <linux@eikelenboom.it>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
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	[thread overview]
Message-ID: <4EA63341.5040400@oracle.com> (raw)
In-Reply-To: <20111024125833.GA19142@phenom.dumpdata.com>

[-- Attachment #1: Type: text/plain, Size: 1541 bytes --]

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

[-- Attachment #2: 0001-fixed-the-acpi-sleep-disable-complied-bug.patch --]
[-- Type: text/plain, Size: 907 bytes --]

>From a7d4508949cc19fd6ade9ab5efbe05ae8e842baf Mon Sep 17 00:00:00 2001
From: Tang Liang <liang.tang@oracle.com>
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


[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

  reply	other threads:[~2011-10-25  3:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23 11:29 devel/acpi-cpufreq.v3: arch/x86/built-in.o:(.data+0x5f88): undefined reference to `x86_acpi_suspend_lowlevel' Sander Eikelenboom
2011-10-24 12:58 ` Konrad Rzeszutek Wilk
2011-10-25  3:55   ` liang tang [this message]
2011-10-25  7:35     ` Sander Eikelenboom
2011-10-24 22:12 ` Konrad Rzeszutek Wilk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EA63341.5040400@oracle.com \
    --to=liang.tang@oracle.com \
    --cc=konrad.wilk@oracle.com \
    --cc=linux@eikelenboom.it \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.