From: Gianluca Guida Subject: RE: About CONFIG_ACPI_PROCESSOR_XEN Date: Mon, 24 Aug 2009 16:06:59 +0100 Message-ID: <19090.44179.307374.533766@gianluca.uk.xensource.com> References: <19090.38074.148633.400137@gianluca.uk.xensource.com> <4D05DB80B95B23498C72C700BD6C2E0B33689A03@pdsmsx502.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D05DB80B95B23498C72C700BD6C2E0B33689A03@pdsmsx502.ccr.corp.intel.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: "Yu, Ke" Cc: "xen-devel@lists.xensource.com" , Gianluca Guida , Jeremy Fitzhardinge , "Tian, Kevin" List-Id: xen-devel@lists.xenproject.org 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 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