Skip to content

Commit

Permalink
nohz: Type cast printk argument
Browse files Browse the repository at this point in the history
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 <tglx@linutronix.de>
LKML-Reference: <new-submission>
  • Loading branch information
Thomas Gleixner committed Nov 13, 2009
1 parent e3a4fab commit 529eacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 529eacc

Please sign in to comment.