mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -tip] x86: apic/nmi.c prev_nmi_count should be unsigned
@ 2009-04-09 14:45 Jaswinder Singh Rajput
  0 siblings, 0 replies; only message in thread
From: Jaswinder Singh Rajput @ 2009-04-09 14:45 UTC (permalink / raw)
  To: Ingo Molnar, x86 maintainers, LKML

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@gmail.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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-09 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09 14:45 [PATCH -tip] x86: apic/nmi.c prev_nmi_count should be unsigned Jaswinder Singh Rajput

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome