From: Jesper Juhl Date: Tue, 28 Mar 2006 09:56:52 +0000 (-0800) Subject: [PATCH] fix signed vs unsigned in nmi watchdog X-Git-Tag: v2.6.17-rc1~214 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b791ccef21129f9c7e4ab8274d5d7a0ec0a2fb7c;p=linux-2.6 [PATCH] fix signed vs unsigned in nmi watchdog Fix "signed vs unsigned" in nmi_watchdog_tick. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/kernel/nmi.c b/arch/i386/kernel/nmi.c index 5ad6a2c92d..d43b498ec7 100644 --- a/arch/i386/kernel/nmi.c +++ b/arch/i386/kernel/nmi.c @@ -529,7 +529,8 @@ void nmi_watchdog_tick (struct pt_regs * 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;