summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-01-14 05:22:31 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-01-14 05:22:31 +0000
commit49ae212eee32b4276d3ced7b947e1406e4f987b0 (patch)
tree783b05b7449e7b969d0aa9cb755f061e7a0ef28d /target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch
parentd8afb543d02562f740f5e23ab0f827cda7aec660 (diff)
downloadmtk-20170518-49ae212eee32b4276d3ced7b947e1406e4f987b0.zip
mtk-20170518-49ae212eee32b4276d3ced7b947e1406e4f987b0.tar.gz
mtk-20170518-49ae212eee32b4276d3ced7b947e1406e4f987b0.tar.bz2
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
Diffstat (limited to 'target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch')
-rw-r--r--target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch2
1 files changed, 1 insertions, 1 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 9962b1e..4eb5234 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 = &current_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;