From: Ingo Molnar Date: Mon, 26 Feb 2024 11:07:31 +0000 (+0100) Subject: x86/apic: Build the x86 topology enumeration functions on UP APIC builds too X-Git-Tag: v6.9-rc1~202^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6be4ec29685c216ebec61d35f56c3808092498aa;p=thirdparty%2Flinux.git x86/apic: Build the x86 topology enumeration functions on UP APIC builds too These functions are mostly pointless on UP, but nevertheless the 64-bit UP APIC build already depends on the existence of topology_apply_cmdline_limits_early(), which caused a build bug, resolve it by making them available under CONFIG_X86_LOCAL_APIC, as their prototypes already are. Reviewed-by: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c index 41dd8e0eb5117..43650fe81741d 100644 --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c @@ -344,7 +344,7 @@ void topology_hotunplug_apic(unsigned int cpu) } #endif -#ifdef CONFIG_SMP +#ifdef CONFIG_X86_LOCAL_APIC static unsigned int max_possible_cpus __initdata = NR_CPUS; /**