mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
The function has an inline "return false;" definition with CONFIG_SMP=n
but the "real" definition is also visible leading to "redefinition of
‘apic_id_is_primary_thread’" compiler error.
Guard it with #ifdef CONFIG_SMP
Signed-off-by: Vlastimil Babka <[email protected]>
Fixes: 6a4d2657e0 ("x86/smp: Provide topology_is_primary_thread()")
Cc: [email protected]
Signed-off-by: Linus Torvalds <[email protected]>