From: 黄涛 Date: Sat, 4 Dec 2010 06:21:46 +0000 (+0800) Subject: rk29sdk: fix gcc warning: integer overflow in expression X-Git-Tag: firefly_0821_release~10996 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=902026aa8362f912855815e5b9eb7e99685aab4e;p=firefly-linux-kernel-4.4.55.git rk29sdk: fix gcc warning: integer overflow in expression --- diff --git a/arch/arm/mach-rk29/board-rk29sdk.c b/arch/arm/mach-rk29/board-rk29sdk.c index 6390ec601a46..8341b29bb37b 100755 --- a/arch/arm/mach-rk29/board-rk29sdk.c +++ b/arch/arm/mach-rk29/board-rk29sdk.c @@ -56,7 +56,7 @@ #define PMEM_UI_SIZE SZ_16M #define PMEM_VPU_SIZE SZ_32M -#define PMEM_GPU_BASE (RK29_SDRAM_PHYS + SDRAM_SIZE - PMEM_GPU_SIZE) +#define PMEM_GPU_BASE ((u32)RK29_SDRAM_PHYS + SDRAM_SIZE - PMEM_GPU_SIZE) #define PMEM_UI_BASE (PMEM_GPU_BASE - PMEM_UI_SIZE) #define PMEM_VPU_BASE (PMEM_UI_BASE - PMEM_VPU_SIZE) #define LINUX_SIZE (PMEM_VPU_BASE - RK29_SDRAM_PHYS)