Re: [PATCH] EDAC, mpc85xx: fix build warning

From: Sudip Mukherjee
Date: Tue Feb 02 2016 - 09:48:36 EST


On Tue, Feb 02, 2016 at 12:15:45PM +0100, Borislav Petkov wrote:
> On Tue, Feb 02, 2016 at 01:30:21PM +0530, Sudip Mukherjee wrote:
> > We were getting build warning about:
> > drivers/edac/mpc85xx_edac.c:1247:6: warning: unused variable 'pvr'
> >
> > pvr is only used if CONFIG_FSL_SOC_BOOKE was defined. Declare the
> > variable as a local variable inside the #ifdef block.
>
> What's wrong with doing the simpler thing:

I hesitated because of issuing MFSPR twice. But anyway, I have sent the
v2 for your review.

regards
sudip