]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: Fix build error cavium-octeon without CONFIG_SMP
authorEunBong Song <eunb.song@samsung.com>
Sun, 24 Mar 2013 22:18:35 +0000 (22:18 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 5 Apr 2013 13:10:39 +0000 (15:10 +0200)
Singed-off-by: EunBong Song <eunb.song@samsung.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c

index c594a3d4f743be31d2933e5ed5589f423d8a3743..b0baa299f899b3c2322c0a4346cc4947dcfc2457 100644 (file)
@@ -174,7 +174,10 @@ static int octeon_kexec_prepare(struct kimage *image)
 
 static void octeon_generic_shutdown(void)
 {
-       int cpu, i;
+       int i;
+#ifdef CONFIG_SMP
+       int cpu;
+#endif
        struct cvmx_bootmem_desc *bootmem_desc;
        void *named_block_array_ptr;