1 --- a/arch/mips/kernel/signal.c
2 +++ b/arch/mips/kernel/signal.c
3 @@ -101,7 +101,7 @@ static int protected_save_fp_context(str
5 static int protected_restore_fp_context(struct sigcontext __user *sc)
8 + int err, tmp __maybe_unused;
12 --- a/arch/mips/kernel/syscall.c
13 +++ b/arch/mips/kernel/syscall.c
14 @@ -372,7 +372,7 @@ save_static_function(sys_sysmips);
15 static int __used noinline
16 _sys_sysmips(nabi_no_regargs struct pt_regs regs)
18 - long cmd, arg1, arg2, arg3;
19 + long cmd, arg1, arg2, arg3 __maybe_unused;
23 --- a/arch/mips/mm/init.c
24 +++ b/arch/mips/mm/init.c
25 @@ -323,7 +323,7 @@ static int __init page_is_ram(unsigned l
26 void __init paging_init(void)
28 unsigned long max_zone_pfns[MAX_NR_ZONES];
29 - unsigned long lastpfn;
30 + unsigned long lastpfn __maybe_unused;
34 --- a/include/linux/pagemap.h
35 +++ b/include/linux/pagemap.h
36 @@ -412,7 +412,7 @@ static inline int fault_in_pages_writeab
38 static inline int fault_in_pages_readable(const char __user *uaddr, int size)
41 + volatile char c __maybe_unused;
44 if (unlikely(size == 0))
45 --- a/arch/mips/mm/c-r4k.c
46 +++ b/arch/mips/mm/c-r4k.c
47 @@ -1076,7 +1076,7 @@ static int __cpuinit probe_scache(void)
48 unsigned long flags, addr, begin, end, pow2;
49 unsigned int config = read_c0_config();
50 struct cpuinfo_mips *c = ¤t_cpu_data;
52 + int tmp __maybe_unused;