From 67d07a64e335402166b1bd484e22f8f9e256baad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 29 May 2021 21:10:51 +0300 Subject: [PATCH] cpu/x86/lapic: Declare start_cpu() static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is for the !PARALLEL_MP paths. Change-Id: If4b91834a1b6de2a902ab914610ab76c1423f1e9 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/55188 Reviewed-by: Angel Pons Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/cpu/x86/lapic/lapic_cpu_init.c | 2 +- src/include/cpu/x86/lapic.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cpu/x86/lapic/lapic_cpu_init.c b/src/cpu/x86/lapic/lapic_cpu_init.c index 29f3724b18..d4718c60cc 100644 --- a/src/cpu/x86/lapic/lapic_cpu_init.c +++ b/src/cpu/x86/lapic/lapic_cpu_init.c @@ -241,7 +241,7 @@ static void *stacks[CONFIG_MAX_CPUS]; volatile unsigned long secondary_stack; volatile unsigned int secondary_cpu_index; -int start_cpu(struct device *cpu) +static int start_cpu(struct device *cpu) { struct cpu_info *info; uintptr_t stack_top; diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index 717fc9aa38..ab2843f69a 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -139,7 +139,4 @@ static inline void setup_lapic(void) disable_lapic(); } -struct device; -int start_cpu(struct device *cpu); - #endif /* CPU_X86_LAPIC_H */