linux-mips
[Top] [All Lists]

[PATCH] mips: Fix build error cavium-octeon without CONFIG_SMP

To: ralf@linux-mips.org
Subject: [PATCH] mips: Fix build error cavium-octeon without CONFIG_SMP
From: 송은봉 <eunb.song@samsung.com>
Date: Sun, 24 Mar 2013 23:18:35 +0000 (GMT)
Cc: linux-mips@linux-mips.org, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Dlp-filter: Pass
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Msgkey: 20130324231407936@eunb.song
Reply-to: eunb.song@samsung.com
Sender: linux-mips-bounce@linux-mips.org
This patch fixes build error cavium-octeon without CONFIG_SMP

Singed-off-by: EunBong Song<eunb.song@samsung.com>

---
 arch/mips/cavium-octeon/setup.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
index c594a3d..b0baa29 100644
--- a/arch/mips/cavium-octeon/setup.c
+++ b/arch/mips/cavium-octeon/setup.c
@@ -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;
 
-- 
1.7.0.1

Thanks.
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] mips: Fix build error cavium-octeon without CONFIG_SMP, 송은봉 <=