From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH v2] ACPI: Cleanup , and inclusions. Date: Tue, 26 Nov 2013 12:54:09 -0800 Message-ID: <20131126205409.GA2899@kroah.com> References: <3c5e408cd7791ef746f462c79ce28f67734817d9.1385434808.git.lv.zheng@intel.com> <2011704.hD86fZ2Qk5@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:36479 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752003Ab3KZUyL (ORCPT ); Tue, 26 Nov 2013 15:54:11 -0500 Content-Disposition: inline In-Reply-To: <2011704.hD86fZ2Qk5@vostro.rjw.lan> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Lv Zheng , 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 On Tue, Nov 26, 2013 at 09:29:33PM +0100, 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? None from me, nice cleanups. greg k-h