fix signed vs unsigned in nmi watchdog
PATCH 11/13 fix signed vs unsigned in nmi watchdog
Fix "signed vs unsigned" in nmi_watchdog_tick.
Signed-off-by Jesper Juhl <[email protected]>
---
arch/i386/kernel/nmi.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
arch/i386/kernel/nmi.c +2 -1
@@ -557,7 +557,8 @@ void nmi_watchdog_tick (struct pt_regs ** always switch the stack NMI-atomically, it's safe to use * smp_processor_id(). */ -int sum, cpu =smp_processor_id (); +unsigned int sum; +int cpu =smp_processor_id (); sum =per_cpu (irq_stat, cpu).apic_timer_irqs;