Skip to content

Commit 4a9040f

Browse files
committed
MIPS: tlbex: Fix GCC 4.6.0 build error
CC arch/mips/mm/tlbex.o arch/mips/mm/tlbex.c: In function 'build_r4000_tlb_refill_handler': arch/mips/mm/tlbex.c:1155:22: error: variable 'vmalloc_mode' set but not used [-Werror=unused-but-set-variable] arch/mips/mm/tlbex.c:1154:28: error: variable 'htlb_info' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 71271aa commit 4a9040f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/mips/mm/tlbex.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,8 @@ static void __cpuinit build_r4000_tlb_refill_handler(void)
11511151
struct uasm_reloc *r = relocs;
11521152
u32 *f;
11531153
unsigned int final_len;
1154-
struct mips_huge_tlb_info htlb_info;
1155-
enum vmalloc64_mode vmalloc_mode;
1154+
struct mips_huge_tlb_info htlb_info __maybe_unused;
1155+
enum vmalloc64_mode vmalloc_mode __maybe_unused;
11561156

11571157
memset(tlb_handler, 0, sizeof(tlb_handler));
11581158
memset(labels, 0, sizeof(labels));

0 commit comments

Comments
 (0)