Skip to contentSkip to conversation

m32r/kernel/smpboot.c must #include <linux/cpu.h>

PATCH New Adrian Bunk 1 participant 1 message Oct 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m32r/kernel/smpboot.c must #include <linux/cpu.h>

This patch fixes the following compile error caused by commit e545a6140b698b2494daf0b32107bdcc5e90139 (kernel/cpu.c: create a CPU_STARTING cpu_chain notifier):

<-- snip -->

...
CC arch/m32r/kernel/smpboot.o
arch/m32r/kernel/smpboot.c: In function 'smp_online':
arch/m32r/kernel/smpboot.c:501: error: implicit declaration of function 'notify_cpu_starting' make[2]: *** [arch/m32r/kernel/smpboot.o] Error 1

<-- snip -->

---

arch/m32r/kernel/smpboot.c +1 -0
index fc29948..938f65e 100644
@@ -48,6 +48,7 @@
 #include <linux/irq.h>
 #include <linux/bootmem.h>
 #include <linux/delay.h>
+#include <linux/cpu.h>
 
 #include <asm/io.h>
 #include <asm/pgalloc.h>