diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-02-02 16:39:33 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2016-02-02 18:53:15 +0100 |
commit | f2b59ac66f980e7636c15e2ebbd09f0ef46881ab (patch) | |
tree | 3d221608fb1b5b589815ca67927f63d100ec0727 /drivers/edac | |
parent | EDAC: Cleanup/sync workqueue functions (diff) | |
download | linux-f2b59ac66f980e7636c15e2ebbd09f0ef46881ab.tar.xz linux-f2b59ac66f980e7636c15e2ebbd09f0ef46881ab.zip |
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>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/mpc85xx_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index b7139c160baf..ca63d0da8889 100644 --- a/drivers/edac/mpc85xx_edac.c +++ b/drivers/edac/mpc85xx_edac.c @@ -1244,7 +1244,7 @@ static struct platform_driver * const drivers[] = { static int __init mpc85xx_mc_init(void) { int res = 0; - u32 pvr = 0; + u32 __maybe_unused pvr = 0; printk(KERN_INFO "Freescale(R) MPC85xx EDAC driver, " "(C) 2006 Montavista Software\n"); |