x86/apic: Build the x86 topology enumeration functions on UP APIC builds too
authorIngo Molnar <mingo@kernel.org>
Mon, 26 Feb 2024 11:07:31 +0000 (12:07 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 27 Feb 2024 09:05:41 +0000 (10:05 +0100)
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 <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/topology.c

index 41dd8e0eb51176d5f5959fd7fb78079f772a6560..43650fe81741de56607c6a30384123a4c37368e8 100644 (file)
@@ -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;
 
 /**