]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: hide unused variable in #ifdef
authorArnd Bergmann <arnd@arndb.de>
Tue, 10 Jan 2017 12:19:05 +0000 (13:19 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 23 Jan 2017 06:55:08 +0000 (14:55 +0800)
commit0c5125141c33e713364dbb2616aea75fdbd410fb
treecea565bf2da0ab59f55262123d0431d2445fef1b
parent984ead2ce56afcb50e77818abd7aa50466c414db
ARM: imx: hide unused variable in #ifdef

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-variable]

This moves the variable down inside that same ifdef.

Fixes: 3dfee4ffb4c2 ("ARM/imx/mmcd: Fix broken cpu hotplug handling")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mmdc.c