m68k: Kill warning in setup_arch() when compiling for Sun3
authorGeert Uytterhoeven <[email protected]>
Wed, 8 Jun 2011 18:31:32 +0000 (20:31 +0200)
committerGeert Uytterhoeven <[email protected]>
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 <[email protected]>
arch/m68k/kernel/setup_mm.c

index 334d83640376762b058a7a4010e2878fffe21439..c3b45061dd08d3f6981f3c19e0867f5d16ee62fe 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);