[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] RE: About CONFIG_ACPI_PROCESSOR_XEN



Ha, I see, then the following simple patch should fix this issue, but this will 
limit CONFIG_ACPI_PROCESSOR to be y. I am still thinking if there is better fix 
to allow CONFIG_ACPI_PROCESSOR=m.

diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
index 33976f7..2e7d673 100644
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -98,5 +98,5 @@ config XEN_MCE

 config ACPI_PROCESSOR_XEN
        bool
-       depends on XEN_DOM0 && ACPI_PROCESSOR && CPU_FREQ
+       depends on XEN_DOM0 && ACPI_PROCESSOR = y && CPU_FREQ
        default y

-----Original Message-----
From: Gianluca Guida [mailto:gianluca.guida@xxxxxxxxxx] 
Sent: Monday, August 24, 2009 11:07 PM
To: Yu, Ke
Cc: Gianluca Guida; Tian, Kevin; Jeremy Fitzhardinge; 
xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: About CONFIG_ACPI_PROCESSOR_XEN

Hi Ke,

Yu, Ke writes:
 > Thanks for trying and reporting this issue. The root cause of the 
 > compilation issue is found as: "when CONFIG_ACPI_PROCESSOR_XEN is not set, 
 > the <include/acpi/processor.h> is not included, thus the "struct 
 > acpi_processor" is not defined, which will cause compiling error for inline 
 > function processor_cntl_xen_prepare(struct acpi_processor *pr);"

Hm no, I was not referring to the compilation warning. I've also made
a mistake on explaining the problem. :-)

So, the problem is that when CONFIG_ACPI_PROCESSOR is set to 'm',
CONFIG_ACPI_PROCESSOR_XEN will be set (being bolean, to 'y'). This
will cause the final linking to fail because of undefined symbols
(those now in the module called in the xen acpi code).

Here's what happens in my .config:

CONFIG_ACPI_PROCESSOR=m
[...]
CONFIG_ACPI_PROCESSOR_XEN=y

And this is the result:

LD      .tmp_vmlinux1
drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x543e8): undefined reference to `acpi_processor_get_performance_info'
drivers/built-in.o: In function `processor_cntl_xen_prepare':
(.text+0x5440c): undefined reference to `acpi_processor_get_psd'
make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [sub-make] Error 2

As of your patch, yes that's useful to remove the warning.

Cheers,
Gianluca

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.