Skip to contentSkip to conversation

x86_64: nmi and irq counters are unsigned

PATCH Applied Hiroshi Shimamoto 2 participants 2 messages May 2, 2008 – May 3, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64: nmi and irq counters are unsigned

From: Hiroshi Shimamoto <[email protected]>

__nmi_count, apic_timer_irqs and irq0_irqs are unsigned.

---
 arch/x86/kernel/nmi_64.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/nmi_64.c +2 -2
index 5a29ded..33cb8ec 100644
@@ -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;
Signature · 1 line
1.5.4.1
#1 lore raw
Quoted 3 lines · Hiroshi Shimamoto

From: Hiroshi Shimamoto <[email protected]>

__nmi_count, apic_timer_irqs and irq0_irqs are unsigned.

Applied. Thanks,

tglx