Vlastimil Babka d0055f351e x86/smp: fix non-SMP broken build due to redefinition of apic_id_is_primary_thread
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 <vbabka@suse.cz>
Fixes: 6a4d2657e048 ("x86/smp: Provide topology_is_primary_thread()")
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-08-14 15:00:00 -07:00
..
2017-08-31 21:34:48 +02:00
2017-12-12 11:32:24 +01:00
2018-07-20 01:11:48 +02:00
2018-03-20 10:01:57 +01:00
2017-12-23 21:13:01 +01:00
2018-06-22 21:20:35 +02:00
2018-07-30 19:33:35 +02:00
2017-09-25 20:51:58 +02:00