[U-Boot] [PATCH] ARM: versatile: drop warnings

Albert ARIBAUD albert.u.boot at aribaud.net
Tue Aug 30 11:31:28 CEST 2011


Hi Stefano,

Le 30/08/2011 10:49, Stefano Babic a écrit :
> Drop warning: "passing argument 1 of 'get_ram_size'
> discards qualifiers from pointer target type"
>
> Signed-off-by: Stefano Babic<sbabic at denx.de>
> CC: Albert Aribaud<albert.u.boot at aribaud.net>
> ---
>   board/armltd/versatile/versatile.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/board/armltd/versatile/versatile.c b/board/armltd/versatile/versatile.c
> index ee8cb5e..4a5c31d 100644
> --- a/board/armltd/versatile/versatile.c
> +++ b/board/armltd/versatile/versatile.c
> @@ -94,7 +94,7 @@ int misc_init_r (void)
>   int dram_init (void)
>   {
>   	/* dram_init must store complete ramsize in gd->ram_size */
> -	gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE,
> +	gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE,
>   				PHYS_SDRAM_1_SIZE);
>   	return 0;
>   }

Applied to u-boot-arm/master, thanks!

Amicalement,
-- 
Albert.


More information about the U-Boot mailing list