[PATCH -tip] x86: apic/nmi.c prev_nmi_count should be unsigned

From: Jaswinder Singh Rajput
Date: Thu Apr 09 2009 - 10:46:17 EST


Impact: fix sparse warning:
arch/x86/kernel/apic/nmi.c:158:27: warning: incorrect type in argument 2 (different signedness)
arch/x86/kernel/apic/nmi.c:158:27: expected int *prev_nmi_count
arch/x86/kernel/apic/nmi.c:158:27: got unsigned int *[assigned] prev_nmi_count

prev_nmi_count is a non-negative count so it should be unsigned

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@xxxxxxxxx>
---
arch/x86/kernel/apic/nmi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/apic/nmi.c b/arch/x86/kernel/apic/nmi.c
index d6bd624..0205631 100644
--- a/arch/x86/kernel/apic/nmi.c
+++ b/arch/x86/kernel/apic/nmi.c
@@ -104,7 +104,7 @@ static __init void nmi_cpu_busy(void *data)
}
#endif

-static void report_broken_nmi(int cpu, int *prev_nmi_count)
+static void report_broken_nmi(int cpu, unsigned int *prev_nmi_count)
{
printk(KERN_CONT "\n");

--
1.6.0.6



--
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/