public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wu Zhangjin <wuzhangjin@gmail.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH rt/2.6.31] [RT] kernel/sched.c: Fixup of "implicit declaration of function '_finish_arch_switch'"
Date: Wed, 27 Jan 2010 23:17:54 +0800	[thread overview]
Message-ID: <1264605474.30911.0.camel@falcon> (raw)
In-Reply-To: <4dc11af5f8e10e716e94f4b6b886d1160a5a1744.1264605070.git.wuzhangjin@gmail.com>

On Wed, 2010-01-27 at 23:12 +0800, Wu Zhangjin wrote:
> From: Wu Zhangjin <wuzhangjin@gmail.com>
> 
> 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 <wuzhangjin@gmail.com>
> ---
>  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


      reply	other threads:[~2010-01-27 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-27 15:12 [PATCH rt/2.6.31] [RT] kernel/sched.c: Fixup of "implicit declaration of function '_finish_arch_switch'" Wu Zhangjin
2010-01-27 15:17 ` Wu Zhangjin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1264605474.30911.0.camel@falcon \
    --to=wuzhangjin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox