Skip to contentSkip to conversation

Fix linux/smp.h to include linux/init.h

PATCH In review David Howells 2 participants 2 messages Mar 23, 2011 – Mar 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix linux/smp.h to include linux/init.h

linux/smp.h now needs to include linux/init.h lest it give the following error:

CC arch/mn10300/kernel/asm-offsets.s
In file included from /data/mn10300/linux-2.6-mn10300/arch/mn10300/include/asm/irqflags.h:17,

                 from include/linux/irqflags.h:15,
                 from include/linux/spinlock.h:53,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:57,
                 from arch/mn10300/kernel/asm-offsets.c:7:

include/linux/smp.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'setup_nr_cpu_ids' include/linux/smp.h:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'smp_init'

---

 include/linux/smp.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/smp.h +1 -0
index 48159dd..74fba34 100644
@@ -8,6 +8,7 @@
 
 #include <linux/errno.h>
 #include <linux/types.h>
+#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/cpumask.h>
 
#1 lore raw
Quoted 11 lines · David Howells

linux/smp.h now needs to include linux/init.h lest it give the following error:

CC arch/mn10300/kernel/asm-offsets.s
In file included from /data/mn10300/linux-2.6-mn10300/arch/mn10300/include/asm/irqflags.h:17,

                  from include/linux/irqflags.h:15,
                  from include/linux/spinlock.h:53,
                  from include/linux/seqlock.h:29,
                  from include/linux/time.h:8,
                  from include/linux/timex.h:56,
                  from include/linux/sched.h:57,
                  from arch/mn10300/kernel/asm-offsets.c:7:
Quoted 4 lines

include/linux/smp.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'setup_nr_cpu_ids' include/linux/smp.h:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'smp_init'

Hi, David,

Heiko sent a same patch before you did. :)

Thanks.