[patch 16/28] m32r: build fix of arch/m32r/kernel/smpboot.c



This patch is for Mathieu Desnoyers's include/asm-m32r/local.h.
Applying the new include/asm-m32r/local.h, inclusion of linux/sched.h
is needed to fix a build error of arch/m32r/kernel/smpboot.c.

<-- snip -->
...
CC arch/m32r/kernel/smpboot.o
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c: In function 'do_boot_cpu':
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:279: error: implicit declaration of function 'fork_idle'
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:279: warning: assignment makes pointer from integer without a cast
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:283: error: dereferencing pointer to incomplete type
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:289: error: dereferencing pointer to incomplete type
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:290: error: implicit declaration of function 'task_thread_info'
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:290: error: invalid type argument of '->'
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c: In function 'start_secondary':
/project/m32r-linux/kernel/work/linux-2.6_dev.git/arch/m32r/kernel/smpboot.c:429: error: implicit declaration of function 'cpu_init'
make[2]: *** [arch/m32r/kernel/smpboot.o] Error 1
<-- snip -->

Signed-off-by: Hirokazu Takata <takata@xxxxxxxxxxxxxx>
---
arch/m32r/kernel/smpboot.c | 1 +
1 file changed, 1 insertion(+)

Index: linux-2.6-lttng/arch/m32r/kernel/smpboot.c
===================================================================
--- linux-2.6-lttng.orig/arch/m32r/kernel/smpboot.c 2007-08-21 09:57:48.000000000 -0400
+++ linux-2.6-lttng/arch/m32r/kernel/smpboot.c 2007-08-21 09:58:12.000000000 -0400
@@ -43,6 +43,7 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/mm.h>
+#include <linux/sched.h>
#include <linux/err.h>
#include <linux/irq.h>
#include <linux/bootmem.h>

--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] Kallsyms Should Prefer Non Weak Symbols
    ... Mathieu Desnoyers wrote: ... I don't know if it is a concern, but if we're going to fix it, we should ... fail with a "Inconsistent kallsyms data" error message. ... I've been wanting to send this as a proper patch request email, but I just hadn't found the time to do it, and then our mail server just went berserk and I lost 5 days of LKML:P ...
    (Linux-Kernel)
  • Re: kernel BUG with 2.6.23-rc3-mm1: skb_over_panic
    ... Mathieu Desnoyers wrote: ... I get the following BUG when booting 2.6.23-rc3-mm1 on i386. ... And the bug is still there even if I fix these. ... before these changes it was the environment buffer which got ...
    (Linux-Kernel)
  • Re: [PATCH v3] ftrace: add a tracepoint for __raise_softirq_irqoff()
    ... Mathieu Desnoyers wrote: ... meant not to have this kind of problems (I try to keep the dependencies ... Although this TRACE_EVENT happens to expose problems with circular header ... Yes, we should try to fix TRACE_EVENT, but we should fix it _before_ we ...
    (Linux-Kernel)
  • [PATCH] x86 : revert replace LOCK_PREFIX in futex.h
    ... On Thu, 14 Aug 2008, Mathieu Desnoyers wrote: ... Changing the 0x90 currently used into a 0x3E DS segment ... override prefix should fix this issue. ... if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int))) ...
    (Linux-Kernel)
  • Re: [patch 16/16] marker_synchronize_unregister->tracepoint_synchronize_unregister
    ... Ingo Molnar wrote: ... I updated the patch accordingly. ... Mathieu Desnoyers ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)