s390/topology: fix compile error in file arch/s390/kernel/smp.c
authorThomas Richter <tmricht@linux.vnet.ibm.com>
Thu, 16 Nov 2017 13:26:36 +0000 (14:26 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 20 Nov 2017 07:51:01 +0000 (08:51 +0100)
commit38389ec84e835fa31a59b7dabb18343106a6d0d5
tree8c4ba32cc565e7c6826f30475b32698a4e3d550f
parentc8a0739b185d11d6e2ca7ad9f5835841d1cfc765
s390/topology: fix compile error in file arch/s390/kernel/smp.c

Commit 1887aa07b676
("s390/topology: add detection of dedicated vs shared CPUs")
introduced following compiler error when CONFIG_SCHED_TOPOLOGY is not set.

 CC      arch/s390/kernel/smp.o
...
arch/s390/kernel/smp.c: In function ‘smp_start_secondary’:
arch/s390/kernel/smp.c:812:6: error: implicit declaration of function
‘topology_cpu_dedicated’; did you mean ‘topology_cpu_init’?

This patch fixes the compiler error by adding function
topology_cpu_dedicated() to return false when this config option is
not defined.

Signed-off-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/topology.h
arch/s390/kernel/smp.c