Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/smp: get rid of compile warning

Add missing #ifdep CONFIG_HOTPLUG_CPU to get rid of this one:
arch/s390/kernel/smp.c:229:13: warning: 'pcpu_free_lowcore'
defined but not used [-Wunused-function]

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Heiko Carstens and committed by
Martin Schwidefsky
9d0f46af 63291d40

+4
+4
arch/s390/kernel/smp.c
··· 226 226 return -ENOMEM; 227 227 } 228 228 229 + #ifdef CONFIG_HOTPLUG_CPU 230 + 229 231 static void pcpu_free_lowcore(struct pcpu *pcpu) 230 232 { 231 233 pcpu_sigp_retry(pcpu, sigp_set_prefix, 0); ··· 248 246 free_pages((unsigned long) pcpu->lowcore, LC_ORDER); 249 247 } 250 248 } 249 + 250 + #endif /* CONFIG_HOTPLUG_CPU */ 251 251 252 252 static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu) 253 253 {