aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-17 17:21:03 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-17 17:21:03 +0000
commit383008635a48cc1453ae21f649ce7864cb7003f2 (patch)
tree1b3a4908e22f252ba4395e735859c1fe4048964e /target
parenta86e168c5445beddf351aadccb2f1c8ac1ea24ce (diff)
downloadupstream-383008635a48cc1453ae21f649ce7864cb7003f2.tar.gz
upstream-383008635a48cc1453ae21f649ce7864cb7003f2.tar.bz2
upstream-383008635a48cc1453ae21f649ce7864cb7003f2.zip
generic/2.6.37: fix 'set but unused' build errors on MIPS
SVN-Revision: 30615
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch b/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch
new file mode 100644
index 0000000000..17bcba57c6
--- /dev/null
+++ b/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch
@@ -0,0 +1,44 @@
+--- a/arch/mips/kernel/signal.c
++++ b/arch/mips/kernel/signal.c
+@@ -84,7 +84,7 @@ static int protected_save_fp_context(str
+
+ static int protected_restore_fp_context(struct sigcontext __user *sc)
+ {
+- int err, tmp;
++ int err, tmp __maybe_unused;
+ while (1) {
+ lock_fpu_owner();
+ own_fpu_inatomic(0);
+--- a/arch/mips/kernel/syscall.c
++++ b/arch/mips/kernel/syscall.c
+@@ -383,7 +383,7 @@ save_static_function(sys_sysmips);
+ static int __used noinline
+ _sys_sysmips(nabi_no_regargs struct pt_regs regs)
+ {
+- long cmd, arg1, arg2, arg3;
++ long cmd, arg1, arg2, arg3 __maybe_unused;
+
+ cmd = regs.regs[4];
+ arg1 = regs.regs[5];
+--- a/arch/mips/mm/init.c
++++ b/arch/mips/mm/init.c
+@@ -324,7 +324,7 @@ int page_is_ram(unsigned long pagenr)
+ void __init paging_init(void)
+ {
+ unsigned long max_zone_pfns[MAX_NR_ZONES];
+- unsigned long lastpfn;
++ unsigned long lastpfn __maybe_unused;
+
+ pagetable_init();
+
+--- a/arch/mips/mm/c-r4k.c
++++ b/arch/mips/mm/c-r4k.c
+@@ -1075,7 +1075,7 @@ static int __cpuinit probe_scache(void)
+ unsigned long flags, addr, begin, end, pow2;
+ unsigned int config = read_c0_config();
+ struct cpuinfo_mips *c = &current_cpu_data;
+- int tmp;
++ int tmp __maybe_unused;
+
+ if (config & CONF_SC)
+ return 0;