From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933098AbcBBPTq (ORCPT ); Tue, 2 Feb 2016 10:19:46 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:33512 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933050AbcBBPTo (ORCPT ); Tue, 2 Feb 2016 10:19:44 -0500 Date: Tue, 2 Feb 2016 20:49:34 +0530 From: Sudip Mukherjee To: Borislav Petkov Cc: Johannes Thumshirn , Guenter Roeck , Johannes Thumshirn , Doug Thompson , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org Subject: Re: [PATCH] EDAC, mpc85xx: fix build warning Message-ID: <20160202151934.GD7200@sudip-laptop> References: <1454400021-17583-1-git-send-email-sudipm.mukherjee@gmail.com> <20160202111545.GC3778@pd.tnic> <20160202143801.GA6995@roeck-us.net> <20160202144803.GQ27969@c203.arch.suse.de> <20160202145554.GB7200@sudip-laptop> <20160202150950.GC15507@pd.tnic> <20160202151357.GC7200@sudip-laptop> <20160202151543.GD15507@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160202151543.GD15507@pd.tnic> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 02, 2016 at 04:15:43PM +0100, Borislav Petkov wrote: > On Tue, Feb 02, 2016 at 08:43:57PM +0530, Sudip Mukherjee wrote: > > another way might be: > > > > diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c > > index b7139c1..968c0c0 100644 > > --- a/drivers/edac/mpc85xx_edac.c > > +++ b/drivers/edac/mpc85xx_edac.c > > @@ -1244,7 +1244,9 @@ static struct platform_driver * const drivers[] = { > > static int __init mpc85xx_mc_init(void) > > { > > int res = 0; > > +#ifdef CONFIG_FSL_SOC_BOOKE > > u32 pvr = 0; > > +#endif > > Nah, this is the ugliest of them all. We want less ifdeffery, not more. ok, i am resending with __maybe_unused regards sudip