[PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c

Sergei Shtylyov sshtylyov at mvista.com
Sat Mar 5 07:36:11 EST 2011


Hello.

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

> Signed-off-by: Alexander Clouter<alex at 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



More information about the linux-arm-kernel mailing list