Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: John Crispin <john@phrozen.org>
To: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>, linux-mips@linux-mips.org
Subject: Re: [PATCH upstream-sfr] MIPS: APRP: Use the new __wait_event*() interface in RTLX
Date: Fri, 17 Jan 2014 08:14:07 +0100	[thread overview]
Message-ID: <52D8D83F.1020906@phrozen.org> (raw)
In-Reply-To: <1389908212-19898-1-git-send-email-dengcheng.zhu@imgtec.com>

Hi,

should we fold this fix into 9d4147a783


    John

 
On 16/01/2014 22:36, Deng-Cheng Zhu wrote:
> From: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
>
> The commit 35a2af94c7 (sched/wait: Make the __wait_event*() interface more
> friendly) changed __wait_event_interruptible() to use 2 parameters instead
> of 3. It also made corresponding changes to rtlx.c. However, these changes
> were partially reverted by 9d4147a783 (MIPS: APRP: Code formatting
> clean-ups.). This patch fixes it.
>
> Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
> ---
> Ralf, this needs to go upstream-sfr/mips-for-linux-next to fix the APRP
> build error: macro "__wait_event_interruptible" passed 3 arguments, but
> takes just 2
>
>  arch/mips/kernel/rtlx.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c
> index 4658350..31b1b76 100644
> --- a/arch/mips/kernel/rtlx.c
> +++ b/arch/mips/kernel/rtlx.c
> @@ -108,10 +108,9 @@ int rtlx_open(int index, int can_sleep)
>  		p = vpe_get_shared(aprp_cpu_index());
>  		if (p == NULL) {
>  			if (can_sleep) {
> -				__wait_event_interruptible(
> +				ret = __wait_event_interruptible(
>  					channel_wqs[index].lx_queue,
> -					(p = vpe_get_shared(aprp_cpu_index())),
> -					ret);
> +					(p = vpe_get_shared(aprp_cpu_index())));
>  				if (ret)
>  					goto out_fail;
>  			} else {

  parent reply	other threads:[~2014-01-17  7:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16 21:36 [PATCH upstream-sfr] MIPS: APRP: Use the new __wait_event*() interface in RTLX Deng-Cheng Zhu
2014-01-16 21:36 ` Deng-Cheng Zhu
2014-01-17  7:14 ` John Crispin [this message]
     [not found]   ` <52D968D1.2040309@imgtec.com>
2014-01-20 23:09     ` DengCheng Zhu

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=52D8D83F.1020906@phrozen.org \
    --to=john@phrozen.org \
    --cc=dengcheng.zhu@imgtec.com \
    --cc=linux-mips@linux-mips.org \
    /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