linux/3.3: add missing config symbols
[openwrt.git] / target / linux / generic / patches-2.6.32 / 032-mips_unused_variables.patch
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
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 @@ -372,7 +372,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 @@ -323,7 +323,7 @@ static int __init page_is_ram(unsigned l
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/include/linux/pagemap.h
35 +++ b/include/linux/pagemap.h
36 @@ -412,7 +412,7 @@ static inline int fault_in_pages_writeab
37
38 static inline int fault_in_pages_readable(const char __user *uaddr, int size)
39 {
40 - volatile char c;
41 + volatile char c __maybe_unused;
42 int ret;
43
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 = &current_cpu_data;
51 - int tmp;
52 + int tmp __maybe_unused;
53
54 if (config & CONF_SC)
55 return 0;
This page took 0.051497 seconds and 5 git commands to generate.