linux-stable/arch/x86/kernel/apic
Vlastimil Babka 9428a6a0ea x86/smp: fix non-SMP broken build due to redefinition of apic_id_is_primary_thread
commit d0055f351e upstream.

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: 6a4d2657e0 ("x86/smp: Provide topology_is_primary_thread()")
Cc: stable@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-15 18:13:01 +02:00
..
apic.c x86/smp: fix non-SMP broken build due to redefinition of apic_id_is_primary_thread 2018-08-15 18:13:01 +02:00
apic_flat_64.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_noop.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
apic_numachip.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
bigsmp_32.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
htirq.c x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-15 18:12:58 +02:00
hw_nmi.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
io_apic.c x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-15 18:12:58 +02:00
ipi.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
msi.c x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-15 18:12:58 +02:00
probe_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
probe_64.c x86/apic: Remove duplicated include from probe_64.c 2016-07-19 16:02:31 +02:00
vector.c x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-15 18:12:58 +02:00
x2apic_cluster.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
x2apic_phys.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
x2apic_uv_x.c x86/platform/UV: Fix GAM Range Table entries less than 1GB 2018-04-26 11:02:20 +02:00