brcm63xx: fix build failure on varid

varid might both unused and unitialized when building for e.g: bcm6318,
fix these two warnings turned into errors.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 39277
owl
Florian Fainelli 2014-01-14 05:22:31 +00:00
parent d8afb543d0
commit 49ae212eee
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Subject: [PATCH 42/53] MIPS: BCM63XX: detect bcm6328 variants
struct cpuinfo_mips *c = &current_cpu_data; struct cpuinfo_mips *c = &current_cpu_data;
unsigned int cpu = smp_processor_id(); unsigned int cpu = smp_processor_id();
u32 chipid_reg; u32 chipid_reg;
+ u8 varid; + u8 __maybe_unused varid = 0;
/* soc registers location depends on cpu type */ /* soc registers location depends on cpu type */
chipid_reg = 0; chipid_reg = 0;

View File

@ -189,7 +189,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
unsigned int cpu = smp_processor_id(); unsigned int cpu = smp_processor_id();
u32 chipid_reg; u32 chipid_reg;
+ bool long_chipid = false; + bool long_chipid = false;
u8 varid; u8 __maybe_unused varid = 0;
/* soc registers location depends on cpu type */ /* soc registers location depends on cpu type */
@@ -325,6 +356,9 @@ void __init bcm63xx_cpu_init(void) @@ -325,6 +356,9 @@ void __init bcm63xx_cpu_init(void)