Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

EDAC, mpc85xx: Silence unused variable warning

We were getting this build warning:

drivers/edac/mpc85xx_edac.c:1247:6: warning: unused variable 'pvr'

pvr is only used if CONFIG_FSL_SOC_BOOKE is defined. Declare it
__maybe_unused.

Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1454427573-7994-1-git-send-email-sudipm.mukherjee@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>

authored by

Sudip Mukherjee and committed by
Borislav Petkov
f2b59ac6 06e912d4

+1 -1
+1 -1
drivers/edac/mpc85xx_edac.c
··· 1244 1244 static int __init mpc85xx_mc_init(void) 1245 1245 { 1246 1246 int res = 0; 1247 - u32 pvr = 0; 1247 + u32 __maybe_unused pvr = 0; 1248 1248 1249 1249 printk(KERN_INFO "Freescale(R) MPC85xx EDAC driver, " 1250 1250 "(C) 2006 Montavista Software\n");