Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1564712 > unrolled thread

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

Started byShawn Guo <shawnguo@kernel.org>
First post2017-01-23 08:00 +0100
Last post2017-01-23 08:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] ARM: imx: hide unused variable in #ifdef Shawn Guo <shawnguo@kernel.org> - 2017-01-23 08:00 +0100

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

FromShawn Guo <shawnguo@kernel.org>
Date2017-01-23 08:00 +0100
SubjectRe: [PATCH] ARM: imx: hide unused variable in #ifdef
Message-ID<t2GLE-35L-3@gated-at.bofh.it>
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-variable]
> 
> This moves the variable down inside that same ifdef.
> 
> Fixes: a051f220d6b9 ("ARM/imx/mmcd: Fix broken cpu hotplug handling")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied, thanks.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web