m68k: Kill warning in setup_arch() when compiling for Sun3
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 8 Jun 2011 18:31:32 +0000 (20:31 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 30 Jul 2011 19:21:39 +0000 (21:21 +0200)
arch/m68k/kernel/setup_mm.c: In function ‘setup_arch’:
arch/m68k/kernel/setup_mm.c:219: warning: unused variable ‘i’

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/setup_mm.c

index 334d836..c3b4506 100644 (file)
@@ -216,7 +216,9 @@ static void __init m68k_parse_bootinfo(const struct bi_record *record)
 
 void __init setup_arch(char **cmdline_p)
 {
+#ifndef CONFIG_SUN3
        int i;
+#endif
 
        /* The bootinfo is located right after the kernel bss */
        m68k_parse_bootinfo((const struct bi_record *)_end);