From: Thomas Gleixner Date: Fri, 13 Nov 2009 13:32:19 +0000 (+0100) Subject: nohz: Type cast printk argument X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=529eaccd900a59724619b4a6ef6579fd518d5218;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git nohz: Type cast printk argument On some archs local_softirq_pending() has a data type of unsigned long on others its unsigned int. Type cast it to (unsigned int) in the printk to avoid the compiler warning. Signed-off-by: Thomas Gleixner LKML-Reference: --- diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 3840f6dff7eb..c65ba0faa98f 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -250,7 +250,7 @@ void tick_nohz_stop_sched_tick(int inidle) if (ratelimit < 10) { printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n", - local_softirq_pending()); + (unsigned int) local_softirq_pending()); ratelimit++; } goto end;