summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-05-29 21:10:51 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-06-07 21:05:46 +0000
commit67d07a64e335402166b1bd484e22f8f9e256baad (patch)
tree87f81899ed775acea9ea564b640d21f66a2adc5f
parent176989a48b95ccb92c0aab9b1a557e6b72871211 (diff)
cpu/x86/lapic: Declare start_cpu() static
This is for the !PARALLEL_MP paths. Change-Id: If4b91834a1b6de2a902ab914610ab76c1423f1e9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55188 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/cpu/x86/lapic/lapic_cpu_init.c2
-rw-r--r--src/include/cpu/x86/lapic.h3
2 files changed, 1 insertions, 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 */