lkml.org 
[lkml]   [2006]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 11/13] fix signed vs unsigned in nmi watchdog
Date

Fix "signed vs unsigned" in nmi_watchdog_tick.


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

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-24 21:53    [W:0.026 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site