From 49ae212eee32b4276d3ced7b947e1406e4f987b0 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 14 Jan 2014 05:22:31 +0000 Subject: [PATCH] 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 SVN-Revision: 39277 --- .../patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch | 2 +- .../339-MIPS-BCM63XX-add-support-for-BCM63268.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch b/target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch index 9962b1e593..4eb5234a0d 100644 --- a/target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch +++ b/target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch @@ -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; diff --git a/target/linux/brcm63xx/patches-3.10/339-MIPS-BCM63XX-add-support-for-BCM63268.patch b/target/linux/brcm63xx/patches-3.10/339-MIPS-BCM63XX-add-support-for-BCM63268.patch index ca642db5c5..9a2eb46c7c 100644 --- a/target/linux/brcm63xx/patches-3.10/339-MIPS-BCM63XX-add-support-for-BCM63268.patch +++ b/target/linux/brcm63xx/patches-3.10/339-MIPS-BCM63XX-add-support-for-BCM63268.patch @@ -189,7 +189,7 @@ Signed-off-by: Jonas Gorski 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) -- 2.30.2