From 902026aa8362f912855815e5b9eb7e99685aab4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Sat, 4 Dec 2010 14:21:46 +0800 Subject: [PATCH] rk29sdk: fix gcc warning: integer overflow in expression --- arch/arm/mach-rk29/board-rk29sdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1