From: fabio.estevam@freescale.com Date: Thu, 14 Mar 2013 02:32:55 +0000 (+0000) Subject: nitrogen: Use unsigned long to specify the total RAM size X-Git-Tag: v2013.04-rc2~24^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19a0f7fa271de0345bb2df90d443c547c41e8037;p=platform%2Fkernel%2Fu-boot.git nitrogen: Use unsigned long to specify the total RAM size When building for the nitrogen boards with 2GiB the following warning happens: nitrogen6x.c:89:38: warning: integer overflow in expression [-Woverflow] 2GiB can not fit in 32-bits, so use ulong instead. Reported-by: Albert Aribaud Signed-off-by: Fabio Estevam --- diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c index 0dbb6d2..229c237 100644 --- a/board/boundary/nitrogen6x/nitrogen6x.c +++ b/board/boundary/nitrogen6x/nitrogen6x.c @@ -86,7 +86,7 @@ DECLARE_GLOBAL_DATA_PTR; int dram_init(void) { - gd->ram_size = CONFIG_DDR_MB * 1024 * 1024; + gd->ram_size = ((ulong)CONFIG_DDR_MB * 1024 * 1024); return 0; }