x86: apic/nmi.c prev_nmi_count should be unsigned
PATCH 1/1 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 <[email protected]>
--- arch/x86/kernel/apic/nmi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/apic/nmi.c +1 -1
@@ -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" );
Signature · 1 line
1.6.0.6