[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1239288320.3296.2.camel@ht.satnam>
Date: Thu, 09 Apr 2009 20:15:20 +0530
From: Jaswinder Singh Rajput <jaswinder@...nel.org>
To: Ingo Molnar <mingo@...e.hu>, x86 maintainers <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH -tip] x86: apic/nmi.c prev_nmi_count should be unsigned
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@...il.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists