[PATCH 11/13] fix signed vs unsigned in nmi watchdog

From: Jesper Juhl
Date: Fri Feb 24 2006 - 15:48:17 EST



Fix "signed vs unsigned" in nmi_watchdog_tick.


Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
---

arch/i386/kernel/nmi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.16-rc4-mm2-orig/arch/i386/kernel/nmi.c 2006-02-24 19:25:29.000000000 +0100
+++ linux-2.6.16-rc4-mm2/arch/i386/kernel/nmi.c 2006-02-24 20:55:32.000000000 +0100
@@ -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;




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/