[kernel/2.6.38] fix gcc-4.6 set but unused warnings
[openwrt.git] / target / linux / generic / patches-2.6.38 / 970-mips-gcc-4.6-set-but-unused-fixes.patch
1 --- a/arch/mips/mm/tlbex.c
2 +++ b/arch/mips/mm/tlbex.c
3 @@ -1151,8 +1151,8 @@ static void __cpuinit build_r4000_tlb_re
4 struct uasm_reloc *r = relocs;
5 u32 *f;
6 unsigned int final_len;
7 - struct mips_huge_tlb_info htlb_info;
8 - enum vmalloc64_mode vmalloc_mode;
9 + struct mips_huge_tlb_info htlb_info __maybe_unused;
10 + enum vmalloc64_mode vmalloc_mode __maybe_unused;
11
12 memset(tlb_handler, 0, sizeof(tlb_handler));
13 memset(labels, 0, sizeof(labels));
14 --- a/arch/mips/mm/c-r4k.c
15 +++ b/arch/mips/mm/c-r4k.c
16 @@ -1075,7 +1075,7 @@ static int __cpuinit probe_scache(void)
17 unsigned long flags, addr, begin, end, pow2;
18 unsigned int config = read_c0_config();
19 struct cpuinfo_mips *c = &current_cpu_data;
20 - int tmp;
21 + int tmp __maybe_unused;
22
23 if (config & CONF_SC)
24 return 0;
This page took 0.047648 seconds and 5 git commands to generate.