All of lore.kernel.org
 help / color / mirror / Atom feed
From: sshtylyov@mvista.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c
Date: Sat, 05 Mar 2011 15:36:11 +0300	[thread overview]
Message-ID: <4D722E3B.8000608@ru.mvista.com> (raw)
In-Reply-To: <20110305113104.GB22117@chipmunk>

Hello.

On 05-03-2011 14:31, Alexander Clouter wrote:

> Signed-off-by: Alexander Clouter<alex@digriz.org.uk>
> ---
>   arch/arm/mach-orion5x/ts78xx-setup.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)

> diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
> index 82e57a6..78e3b9a 100644
> --- a/arch/arm/mach-orion5x/ts78xx-setup.c
> +++ b/arch/arm/mach-orion5x/ts78xx-setup.c
> @@ -200,7 +200,7 @@ static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd,
>   	int sz;
>
>   	if (off) {
> -		sz = min(4 - off, len);
> +		sz = min((int) (4 - off), len);

    Maybe:

		sz = min_t(int, 4 - off, len);

WBR, Sergei

      reply	other threads:[~2011-03-05 12:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-05 11:31 [PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c Alexander Clouter
2011-03-05 12:36 ` Sergei Shtylyov [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=4D722E3B.8000608@ru.mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.