From 22ca938e4d7c4f43302cfa828c062b02e45ec220 Mon Sep 17 00:00:00 2001 From: "Huang, Tao" Date: Mon, 4 May 2015 19:51:17 +0800 Subject: [PATCH] arm: rockchip: ddr_freq: fix compilation warning Signed-off-by: Huang, Tao --- arch/arm/mach-rockchip/ddr_freq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rockchip/ddr_freq.c b/arch/arm/mach-rockchip/ddr_freq.c index 66b6e2afe108..09a1d80413b7 100644 --- a/arch/arm/mach-rockchip/ddr_freq.c +++ b/arch/arm/mach-rockchip/ddr_freq.c @@ -229,7 +229,7 @@ static void ddr_auto_freq(void) { unsigned long freq, new_freq=0, vop_req_freq=0, total_bw_req_freq=0; u32 ddr_percent, target_load; - static u32 local_jiffies=0, max_ddr_percent=0; + static unsigned long local_jiffies=0, max_ddr_percent=0; if (!local_jiffies) local_jiffies = jiffies; @@ -552,7 +552,7 @@ static ssize_t video_state_write(struct file *file, const char __user *buffer, return -EFAULT; } - dprintk(DEBUG_VIDEO_STATE, "%s: %s,len %d\n", __func__, cookie_pot,count); + dprintk(DEBUG_VIDEO_STATE, "%s: %s,len %zu\n", __func__, cookie_pot,count); state=cookie_pot[0]; if( (count>=3) && (cookie_pot[2]=='w') ) -- 2.34.1