Re: [PATCH] ARM: imx: hide unused variable in #ifdef

2017-01-22 Thread Shawn Guo
On Tue, Jan 10, 2017 at 01:19:05PM +0100, Arnd Bergmann wrote: > A bugfix added a new local variable that is only used inside of an #ifdef > section, and unused if CONFIG_PERF_EVENTS is disabled: > > arch/arm/mach-imx/mmdc.c:63:25: warning: 'cpuhp_mmdc_state' defined but not > used [-Wunused-vari

RE: [PATCH] ARM: imx: hide unused variable in #ifdef

2017-01-10 Thread Frank Li
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Tuesday, January 10, 2017 6:19 AM > To: Shawn Guo > Cc: Thomas Gleixner ; Arnd Bergmann > ; Sascha Hauer ; Fabio Estevam > ; Russell King ; Frank Li > ; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.ke