Skip to contentSkip to conversation

s390: fix non smp build of kexec

PATCH In review Heiko Carstens 1 participant 1 message Feb 8, 2006 s390

lore
Share & tools
lore
#0 lore raw

PATCH 7/10 s390: fix non smp build of kexec

From: Heiko Carstens <[email protected]>

Add missing smp_cpu_not_running define to avoid build warnings in the non smp case.

---

 arch/s390/kernel/machine_kexec.c |    5 +++--
 include/asm-s390/smp.h           |    1 +
 2 files changed, 4 insertions(+), 2 deletions(-)
arch/s390/kernel/machine_kexec.c +3 -2
index f0ed5c6..bad81b5 100644
@@ -12,15 +12,16 @@
  * on the S390 architecture.
  */
 
-#include <asm/cio.h>
-#include <asm/setup.h>
 #include <linux/device.h>
 #include <linux/mm.h>
 #include <linux/kexec.h>
 #include <linux/delay.h>
+#include <asm/cio.h>
+#include <asm/setup.h>
 #include <asm/pgtable.h>
 #include <asm/pgalloc.h>
 #include <asm/system.h>
+#include <asm/smp.h>
 
 static void kexec_halt_all_cpus(void *);
 
include/asm-s390/smp.h +1 -0
index a2ae762..9c6e9c3 100644
@@ -101,6 +101,7 @@ smp_call_function_on(void (*func) (void 
 	func(info);
 	return 0;
 }
+#define smp_cpu_not_running(cpu)	1
 #define smp_get_cpu(cpu) ({ 0; })
 #define smp_put_cpu(cpu) ({ 0; })
 #endif