From: Wu Zhangjin <[email protected]>
This patch fixes the following error:
kernel/sched.c: In function 'finish_task_switch':
kernel/sched.c:2979: error: implicit declaration of function
'_finish_arch_switch'
The following archs have defined their finish_arch_switch:
$ grep finish_arch_switch -ur arch/
arch/s390/include/asm/system.h:#define finish_arch_switch(prev)
arch/sh/include/asm/system_32.h:#define finish_arch_switch(prev
arch/avr32/include/asm/system.h:#define finish_arch_switch(prev)
arch/mips/include/asm/system.h:#define finish_arch_switch(prev)
Signed-off-by: Wu Zhangjin <[email protected]>
---
kernel/sched.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 590b9bb..739156e 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -959,6 +959,8 @@ static inline u64 global_rt_runtime(void)
#endif
#ifndef finish_arch_switch
# define _finish_arch_switch(prev) do { } while (0)
+#else
+# define _finish_arch_switc finish_arch_switch
#endif
static inline int task_current(struct rq *rq, struct task_struct *p)
--
1.6.6
On Wed, 2010-01-27 at 23:12 +0800, Wu Zhangjin wrote:
> From: Wu Zhangjin <[email protected]>
>
> This patch fixes the following error:
>
> kernel/sched.c: In function 'finish_task_switch':
> kernel/sched.c:2979: error: implicit declaration of function
> '_finish_arch_switch'
>
> The following archs have defined their finish_arch_switch:
>
> $ grep finish_arch_switch -ur arch/
> arch/s390/include/asm/system.h:#define finish_arch_switch(prev)
> arch/sh/include/asm/system_32.h:#define finish_arch_switch(prev
> arch/avr32/include/asm/system.h:#define finish_arch_switch(prev)
> arch/mips/include/asm/system.h:#define finish_arch_switch(prev)
>
> Signed-off-by: Wu Zhangjin <[email protected]>
> ---
> kernel/sched.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/kernel/sched.c b/kernel/sched.c
> index 590b9bb..739156e 100644
> --- a/kernel/sched.c
> +++ b/kernel/sched.c
> @@ -959,6 +959,8 @@ static inline u64 global_rt_runtime(void)
> #endif
> #ifndef finish_arch_switch
> # define _finish_arch_switch(prev) do { } while (0)
> +#else
> +# define _finish_arch_switc finish_arch_switch
Sorry, Just found the "TAB" delete the "h" of the above
_finish_arch_switc, will resend one later.
Regards,
Wu Zhangjin