mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39277 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9e7aa82658
commit
4db0a8d932
@ -14,7 +14,7 @@ Subject: [PATCH 42/53] MIPS: BCM63XX: detect bcm6328 variants
|
||||
struct cpuinfo_mips *c = ¤t_cpu_data;
|
||||
unsigned int cpu = smp_processor_id();
|
||||
u32 chipid_reg;
|
||||
+ u8 varid;
|
||||
+ u8 __maybe_unused varid = 0;
|
||||
|
||||
/* soc registers location depends on cpu type */
|
||||
chipid_reg = 0;
|
||||
|
||||
@ -189,7 +189,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
|
||||
unsigned int cpu = smp_processor_id();
|
||||
u32 chipid_reg;
|
||||
+ bool long_chipid = false;
|
||||
u8 varid;
|
||||
u8 __maybe_unused varid = 0;
|
||||
|
||||
/* soc registers location depends on cpu type */
|
||||
@@ -325,6 +356,9 @@ void __init bcm63xx_cpu_init(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user