Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762040AbXFTDta (ORCPT ); Tue, 19 Jun 2007 23:49:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760276AbXFTDtW (ORCPT ); Tue, 19 Jun 2007 23:49:22 -0400 Received: from agminet01.oracle.com ([141.146.126.228]:24003 "EHLO agminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755705AbXFTDtV (ORCPT ); Tue, 19 Jun 2007 23:49:21 -0400 Date: Tue, 19 Jun 2007 20:49:34 -0700 From: Randy Dunlap To: Len Brown Cc: "Andreas Herrmann" , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH 7/12] acpi: fix another compile warning Message-Id: <20070619204934.f56722a8.randy.dunlap@oracle.com> In-Reply-To: <200706192338.02807.lenb@kernel.org> References: <20070619225035.GI5193@alberich.amd.com> <200706192338.02807.lenb@kernel.org> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.4.2 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Whitelist: TRUE X-Whitelist: TRUE X-Brightmail-Tracker: AAAAAQAAAAI= Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1484 Lines: 46 On Tue, 19 Jun 2007 23:38:02 -0400 Len Brown wrote: > On Tuesday 19 June 2007 18:50, Andreas Herrmann wrote: > > Avoid compile warning if !ACPI_BLACKLIST_YEAR > > > > CC drivers/acpi/blacklist.o > > drivers/acpi/blacklist.c:76:5: warning: "CONFIG_ACPI_BLACKLIST_YEAR" is not defined > > How were you able to produce a .config with CONFIG_ACPI_BLACKLIST_YEAR not defined? > Can you send it to me? 'make randconfig' does that kind of thing. It doesn't enforce/follow "select" clauses. > thanks, > -Len > > > Signed-off-by: Andreas Herrmann > > --- > > drivers/acpi/blacklist.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c > > index 3ec110c..ac96c47 100644 > > --- a/drivers/acpi/blacklist.c > > +++ b/drivers/acpi/blacklist.c > > @@ -73,7 +73,7 @@ static struct acpi_blacklist_item acpi_blacklist[] __initdata = { > > {""} > > }; > > > > -#if CONFIG_ACPI_BLACKLIST_YEAR > > +#if defined(CONFIG_ACPI_BLACKLIST_YEAR) && CONFIG_ACPI_BLACKLIST_YEAR > > > > static int __init blacklist_by_year(void) > > { > - --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/