diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-09 12:14:54 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-01-09 12:15:06 +0100 |
commit | 81ffa0415b7ac9215c2030e2b15b8efff46605a0 (patch) | |
tree | abcda8b730dca3c3d19aa36c5eb5ea8433c89f2b /arch/s390/kernel/smp.c | |
parent | f47d52afd3bc310a010a037f3cd69d75d163e845 (diff) | |
download | kernel_goldelico_gta04-81ffa0415b7ac9215c2030e2b15b8efff46605a0.zip kernel_goldelico_gta04-81ffa0415b7ac9215c2030e2b15b8efff46605a0.tar.gz kernel_goldelico_gta04-81ffa0415b7ac9215c2030e2b15b8efff46605a0.tar.bz2 |
[S390] vdso: compile fix
!CONFIG_SMP:
arch/s390/kernel/vdso.c: In function 'vdso_init':
arch/s390/kernel/vdso.c:325: error: incompatible type for argument 2 of 'vdso_alloc_per_cpu'
Also move the code out of the BUG_ON statement since it won't be
executed on !CONFIG_BUG. And that would be a bug.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/smp.c')
-rw-r--r-- | arch/s390/kernel/smp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 9c0ccb5..2d337cb 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c @@ -685,7 +685,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) if (MACHINE_HAS_IEEE) lowcore->extended_save_area_addr = (u32) save_area; #else - BUG_ON(vdso_alloc_per_cpu(smp_processor_id(), lowcore)); + if (vdso_alloc_per_cpu(smp_processor_id(), lowcore)) + BUG(); #endif set_prefix((u32)(unsigned long) lowcore); local_mcck_enable(); |