diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-05-09 10:27:35 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-16 08:42:37 -0400 |
commit | 9d0f46af3ead2b38889bea07f1a031c0dfd6020e (patch) | |
tree | ff81ebb963b8ec32b9743e70e0fed1d4675100da /arch/s390 | |
parent | 63291d401c8ab37d8b9a5456e6cbeeca6b32c702 (diff) |
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>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/smp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 1f77227669e8..e505458c6899 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -226,6 +226,8 @@ out: | |||
226 | return -ENOMEM; | 226 | return -ENOMEM; |
227 | } | 227 | } |
228 | 228 | ||
229 | #ifdef CONFIG_HOTPLUG_CPU | ||
230 | |||
229 | static void pcpu_free_lowcore(struct pcpu *pcpu) | 231 | static void pcpu_free_lowcore(struct pcpu *pcpu) |
230 | { | 232 | { |
231 | pcpu_sigp_retry(pcpu, sigp_set_prefix, 0); | 233 | pcpu_sigp_retry(pcpu, sigp_set_prefix, 0); |
@@ -247,6 +249,8 @@ static void pcpu_free_lowcore(struct pcpu *pcpu) | |||
247 | } | 249 | } |
248 | } | 250 | } |
249 | 251 | ||
252 | #endif /* CONFIG_HOTPLUG_CPU */ | ||
253 | |||
250 | static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu) | 254 | static void pcpu_prepare_secondary(struct pcpu *pcpu, int cpu) |
251 | { | 255 | { |
252 | struct _lowcore *lc = pcpu->lowcore; | 256 | struct _lowcore *lc = pcpu->lowcore; |