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)
commit6be4ec29685c216ebec61d35f56c3808092498aa
tree0f7b94124890d2dbbd0930f1f1ff5c1d7d2db300
parent3c2f8859ae1ce53f2a89c8e4ca4092101afbff67
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 <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/topology.c