From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nommos.sslcatacombnetworking.com (nommos.sslcatacombnetworking.com [67.18.224.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 6FB61DDE1D for ; Thu, 10 May 2007 13:44:03 +1000 (EST) Date: Wed, 9 May 2007 22:39:36 -0500 (CDT) From: Kumar Gala To: Scott Wood Subject: Re: [PATCH] Mark prop unused in early_init_dt_scan_chosen(). In-Reply-To: <20070508171451.GA8893@ld0162-tx32.am.freescale.net> Message-ID: References: <20070508171451.GA8893@ld0162-tx32.am.freescale.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 8 May 2007, Scott Wood wrote: > The prop variable is only referenced when initrd support is > turned on. > > Signed-off-by: Scott Wood > --- > arch/powerpc/kernel/prom.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c > index caef555..6705459 100644 > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -720,7 +720,7 @@ static int __init early_init_dt_scan_chosen(unsigned long node, > const char *uname, int depth, void *data) > { > unsigned long *lprop; > - u32 *prop; > + u32 __attribute__((unused)) *prop; is this the desired way to remove warnings related to CONFIG_ options? I know in the past we'd wrap it with a #ifdef CONFIG_FOO > unsigned long l; > char *p; > > - k