From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758944Ab3K1OGI (ORCPT ); Thu, 28 Nov 2013 09:06:08 -0500 Received: from v094114.home.net.pl ([79.96.170.134]:62367 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751213Ab3K1OGE (ORCPT ); Thu, 28 Nov 2013 09:06:04 -0500 From: "Rafael J. Wysocki" To: Lv Zheng Cc: Greg Kroah-Hartman , Bjorn Helgaas , "H. Peter Anvin" , Matthew Garrett , "Luck, Tony" , Konrad Rzeszutek Wilk , "Rafael J. Wysocki" , Len Brown , Lv Zheng , linux-acpi@vger.kernel.org, LKML Subject: Re: [PATCH v2] ACPI: Cleanup , and inclusions. Date: Thu, 28 Nov 2013 15:18:54 +0100 Message-ID: <77005542.rPYLivMWph@vostro.rjw.lan> User-Agent: KMail/4.10.5 (Linux/3.12.0-rc6+; KDE/4.10.5; x86_64; ; ) In-Reply-To: <2011704.hD86fZ2Qk5@vostro.rjw.lan> References: <3c5e408cd7791ef746f462c79ce28f67734817d9.1385434808.git.lv.zheng@intel.com> <2011704.hD86fZ2Qk5@vostro.rjw.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, November 26, 2013 09:29:33 PM Rafael J. Wysocki wrote: > On Tuesday, November 26, 2013 01:21:15 PM Lv Zheng wrote: > > Replace direct inclusions of , and > > , which are incorrect, with inclusions. > > > > 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 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. > > > > This patch also includes necessary cleanups in the affected files where > > other ACPI headers is also included but not referenced. > > > > This looks OK to me, but it touches several other subsystems. It's better to > CC such things to linux-kernel at least. > > Peter, Matthew, Tony, Konrad, Greg, Bjorn, do you have any objections against this? Since no one seems to have problems with this, I've queued it up for the next ACPI pull request, if there are no problems with auto builds. Thanks! -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.