Skip to content

Commit 71271aa

Browse files
committed
MIPS: c-r4k: Fix GCC 4.6.0 build error
CC arch/mips/mm/c-r4k.o arch/mips/mm/c-r4k.c: In function 'probe_scache': arch/mips/mm/c-r4k.c:1078:6: error: variable 'tmp' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors Older GCC versions didn't warn about the unused variable tmp because it was getting initialized. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent c54794d commit 71271aa

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎arch/mips/mm/c-r4k.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,6 @@ static int __cpuinit probe_scache(void)
10751075
unsigned long flags, addr, begin, end, pow2;
10761076
unsigned int config = read_c0_config();
10771077
struct cpuinfo_mips *c = &current_cpu_data;
1078-
int tmp;
10791078

10801079
if (config & CONF_SC)
10811080
return 0;
@@ -1108,7 +1107,6 @@ static int __cpuinit probe_scache(void)
11081107

11091108
/* Now search for the wrap around point. */
11101109
pow2 = (128 * 1024);
1111-
tmp = 0;
11121110
for (addr = begin + (128 * 1024); addr < end; addr = begin + pow2) {
11131111
cache_op(Index_Load_Tag_SD, addr);
11141112
__asm__ __volatile__("nop; nop; nop; nop;"); /* hazard... */

0 commit comments

Comments
 (0)