From fbc45a60eb66aaee54f7496336d090c4497eb8cc Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 29 Jun 2015 17:07:23 +0200 Subject: arch/arm64: Fix compilation without CONFIG_SMP Compilers aren't happy with a declaration of boot_cpu() after defining boot_cpu to 1. Change-Id: I22d0db61646f3e226e5996fa94223ffbb6b760e5 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/10696 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/arch/arm64/cpu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/arch') diff --git a/src/arch/arm64/cpu.c b/src/arch/arm64/cpu.c index 3cf73aedde..1b33c10c55 100644 --- a/src/arch/arm64/cpu.c +++ b/src/arch/arm64/cpu.c @@ -220,7 +220,9 @@ void arch_cpu_wait_for_action(void) } } +#if IS_ENABLED(CONFIG_SMP) int boot_cpu(void) { return cpu_is_bsp(); } +#endif -- cgit v1.2.3