x86: nmi and irq counters are unsigned in nmi_64.c
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Fri, 2 May 2008 23:44:52 +0000 (16:44 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:28:11 +0000 (21:28 +0200)
__nmi_count, apic_timer_irqs and irq0_irqs are unsigned.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/nmi_64.c

index 5a29ded994fa345fb67f92cc19b9fa9dd5606cf8..33cb8ecbb6ddf2a75d15a70c20b615ede9588ea5 100644 (file)
@@ -79,7 +79,7 @@ static __init void nmi_cpu_busy(void *data)
 
 int __init check_nmi_watchdog(void)
 {
-       int *prev_nmi_count;
+       unsigned int *prev_nmi_count;
        int cpu;
 
        if ((nmi_watchdog == NMI_NONE) || (nmi_watchdog == NMI_DISABLED))
@@ -316,7 +316,7 @@ EXPORT_SYMBOL(touch_nmi_watchdog);
 notrace __kprobes int
 nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
 {
-       int sum;
+       unsigned int sum;
        int touched = 0;
        int cpu = smp_processor_id();
        int rc = 0;