From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH v3 2/6] ACPI: Clean up inclusions of ACPI header files Date: Fri, 6 Dec 2013 09:31:42 -0500 Message-ID: <20131206143142.GF3096@pegasus.dumpdata.com> References: <4e8fb7987f7d0390a2e74622c7c1cbb6760c6516.1386317357.git.lv.zheng@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:17423 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756578Ab3LFOg6 (ORCPT ); Fri, 6 Dec 2013 09:36:58 -0500 Content-Disposition: inline In-Reply-To: <4e8fb7987f7d0390a2e74622c7c1cbb6760c6516.1386317357.git.lv.zheng@intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Lv Zheng Cc: "Rafael J. Wysocki" , Len Brown , Lv Zheng , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Greg Kroah-Hartman , Matthew Garrett , Tony Luck , "H. Peter Anvin" On Fri, Dec 06, 2013 at 04:51:52PM +0800, Lv Zheng wrote: > Replace direct inclusions of , and > , which are incorrect, with > inclusions and remove some inclusions of those files that aren't > necessary. > > First of all, , and > should not be included directly from any files that are built for > CONFIG_ACPI unset, because that generally leads to build warnings about > undefined symbols in !CONFIG_ACPI builds. For CONFIG_ACPI set, > includes those files and for CONFIG_ACPI unset it > provides stub ACPI symbols to be used in that case. > > Second, there are ordering dependencies between those files that always > have to be met. Namely, it is required that be included > prior to so that the acpi_pci_root declarations the > latter depends on are always there. And which provides > basic ACPICA type declarations should always be included prior to any other > ACPI headers in CONFIG_ACPI builds. That also is taken care of including > as appropriate. > > Signed-off-by: Lv Zheng > Cc: Konrad Rzeszutek Wilk Acked-by: Konrad Rzeszutek Wilk > Cc: Greg Kroah-Hartman > Cc: Matthew Garrett > Cc: Tony Luck > Cc: "H. Peter Anvin" > Acked-by: Bjorn Helgaas (drivers/pci stuff) > Signed-off-by: Rafael J. Wysocki .. for the Xen stuff with the assertion that you did build with the right CONFIG_XEN...=y parameters). Thank you!