Commit 529eaccd authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
parent e3a4fab0
...@@ -250,7 +250,7 @@ void tick_nohz_stop_sched_tick(int inidle) ...@@ -250,7 +250,7 @@ void tick_nohz_stop_sched_tick(int inidle)
if (ratelimit < 10) { if (ratelimit < 10) {
printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n", printk(KERN_ERR "NOHZ: local_softirq_pending %02x\n",
local_softirq_pending()); (unsigned int) local_softirq_pending());
ratelimit++; ratelimit++;
} }
goto end; goto end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment