mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hans-Christian Egtvedt <egtvedt@samfundet.no>
To: Gabor Juhos <juhosg@openwrt.org>
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] avr32: fix compiler warning
Date: Thu, 26 Sep 2013 08:18:05 +0200	[thread overview]
Message-ID: <20130926061805.GA18123@samfundet.no> (raw)
In-Reply-To: <1380138601-29902-1-git-send-email-juhosg@openwrt.org>

Around Wed 25 Sep 2013 21:50:01 +0200 or thereabout, Gabor Juhos wrote:

Tuning subject to

avr32: cast syscall_return to silence compiler warning

> The patch fixes the following compiler warning:
>     CC      arch/avr32/kernel/process.o
>   arch/avr32/kernel/process.c: In function 'copy_thread':
>   arch/avr32/kernel/process.c:292: warning: assignment makes integer \
>   from pointer without a cast

Thank you for fixing.

> Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>

> ---
> Note: the patch is against v3.12-rc2.

Added to my for-linus branch.

> ---
>  arch/avr32/kernel/process.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/avr32/kernel/process.c b/arch/avr32/kernel/process.c
> index c273100..42a53e74 100644
> --- a/arch/avr32/kernel/process.c
> +++ b/arch/avr32/kernel/process.c
> @@ -289,7 +289,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
>  		memset(childregs, 0, sizeof(struct pt_regs));
>  		p->thread.cpu_context.r0 = arg;
>  		p->thread.cpu_context.r1 = usp; /* fn */
> -		p->thread.cpu_context.r2 = syscall_return;
> +		p->thread.cpu_context.r2 = (unsigned long)syscall_return;
>  		p->thread.cpu_context.pc = (unsigned long)ret_from_kernel_thread;
>  		childregs->sr = MODE_SUPERVISOR;
>  	} else {
-- 
mvh
Hans-Christian Egtvedt

  reply	other threads:[~2013-09-26  6:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-25 19:50 Gabor Juhos
2013-09-26  6:18 ` Hans-Christian Egtvedt [this message]
2013-09-26 18:23   ` Gabor Juhos

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=20130926061805.GA18123@samfundet.no \
    --to=egtvedt@samfundet.no \
    --cc=hskinnemoen@gmail.com \
    --cc=juhosg@openwrt.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®