Root/target/linux/generic/patches-2.6.37/970-mips-gcc-4.6-set-but-unused-fixes.patch

1--- a/arch/mips/kernel/signal.c
2+++ b/arch/mips/kernel/signal.c
3@@ -84,7 +84,7 @@ static int protected_save_fp_context(str
4 
5 static int protected_restore_fp_context(struct sigcontext __user *sc)
6 {
7- int err, tmp;
8+ int err, tmp __maybe_unused;
9     while (1) {
10         lock_fpu_owner();
11         own_fpu_inatomic(0);
12--- a/arch/mips/kernel/syscall.c
13+++ b/arch/mips/kernel/syscall.c
14@@ -383,7 +383,7 @@ save_static_function(sys_sysmips);
15 static int __used noinline
16 _sys_sysmips(nabi_no_regargs struct pt_regs regs)
17 {
18- long cmd, arg1, arg2, arg3;
19+ long cmd, arg1, arg2, arg3 __maybe_unused;
20 
21     cmd = regs.regs[4];
22     arg1 = regs.regs[5];
23--- a/arch/mips/mm/init.c
24+++ b/arch/mips/mm/init.c
25@@ -324,7 +324,7 @@ int page_is_ram(unsigned long pagenr)
26 void __init paging_init(void)
27 {
28     unsigned long max_zone_pfns[MAX_NR_ZONES];
29- unsigned long lastpfn;
30+ unsigned long lastpfn __maybe_unused;
31 
32     pagetable_init();
33 
34--- a/arch/mips/mm/c-r4k.c
35+++ b/arch/mips/mm/c-r4k.c
36@@ -1075,7 +1075,7 @@ static int __cpuinit probe_scache(void)
37     unsigned long flags, addr, begin, end, pow2;
38     unsigned int config = read_c0_config();
39     struct cpuinfo_mips *c = &current_cpu_data;
40- int tmp;
41+ int tmp __maybe_unused;
42 
43     if (config & CONF_SC)
44         return 0;
45

Archive Download this file



interactive