ARM: 8215/1: vfp: Silence mvfr0 variable unused warning
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 20 Nov 2014 19:29:09 +0000 (20:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 21 Nov 2014 15:24:44 +0000 (15:24 +0000)
commit2b94fe2ac97fdd2ae7521004e857e33016720eb7
treeade3110260472cb3cd19646e7aad5242fa812f38
parent6c96a4a6e249a0580b32893583771149e0611375
ARM: 8215/1: vfp: Silence mvfr0 variable unused warning

Stephen Rothwell reports that commit 3f4c9f8f0a20 ("ARM: 8197/1:
vfp: Fix VFPv3 hwcap detection on CPUID based cpus") introduced a
variable unused warning.

arch/arm/vfp/vfpmodule.c: In function 'vfp_init':
arch/arm/vfp/vfpmodule.c:725:6: warning: unused variable 'mvfr0'
[-Wunused-variable]
  u32 mvfr0;

Silence this warning by using IS_ENABLED instead of ifdefs.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/vfp/vfpmodule.c