Skip to contentSkip to conversation

x86, vsyscall: Fix sparse warning: Using plain integer as NULL

PATCH Superseded Emil Goode 1 participant 1 message Mar 31, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 x86, vsyscall: Fix sparse warning: Using plain integer as NULL

This patch silences the following sparse warning:
arch/x86/kernel/vsyscall_64.c:250:34:
warning: Using plain integer as NULL pointer

---
 arch/x86/kernel/vsyscall_64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/vsyscall_64.c +1 -1
index f386dc4..6170ff9 100644
@@ -247,7 +247,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
 
 		ret = sys_getcpu((unsigned __user *)regs->di,
 				 (unsigned __user *)regs->si,
-				 0);
+				 NULL);
 		break;
 	}
 
Signature · 1 line
1.7.9.1