aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx
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
commit4db0a8d932e2feb25b91153df53288d77b33da16 (patch)
tree1ccbd309afc7b5dbd1818c62dd8e5e5e8cbafcca /target/linux/brcm63xx
parent9e7aa82658e9ad369c0d45ba4153b284f6343572 (diff)
downloadmaster-187ad058-4db0a8d932e2feb25b91153df53288d77b33da16.tar.gz
master-187ad058-4db0a8d932e2feb25b91153df53288d77b33da16.tar.bz2
master-187ad058-4db0a8d932e2feb25b91153df53288d77b33da16.zip
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
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/patches-3.10/332-MIPS-BCM63XX-detect-bcm6328-variants.patch2
-rw-r--r--target/linux/brcm63xx/patches-3.10/339-MIPS-BCM63XX-add-support-for-BCM63268.patch2
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 = &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;
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 <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)