Skip to contentSkip to conversation

syscalls: add __NR_kcmp syscall to generic unistd.h

PATCH In review Mark Salter 2 participants 3 messages Sep 24, 2012 Generic include/asm header files

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls: add __NR_kcmp syscall to generic unistd.h

Commit d97b46a64 added a new syscall (__NR_kcmp) to support checkpoint restore. It is currently x86-only, but that restriction will be removed in a subsequent patch. Unfortunately, the kernel checksyscalls script had a bug which suppressed any warning to other architectures that the kcmp syscall was not implemented. A patch to checksyscalls is being tested in linux-next and other architectures are seeing warnings about kcmp being unimplemented.

This patch adds __NR_kcmp to <asm-generic/unistd.h> so that kcmp is wired in for architectures using the generic syscall list.

---
 include/asm-generic/unistd.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
include/asm-generic/unistd.h +3 -1
index 991ef01..3748ec9 100644
@@ -691,9 +691,11 @@ __SC_COMP(__NR_process_vm_readv, sys_process_vm_readv, \
 #define __NR_process_vm_writev 271
 __SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
           compat_sys_process_vm_writev)
+#define __NR_kcmp 272
+__SYSCALL(__NR_kcmp, sys_kcmp)
 
 #undef __NR_syscalls
-#define __NR_syscalls 272
+#define __NR_syscalls 273
 
 /*
  * All syscalls below here should go away really,
Signature · 1 line
1.7.9.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Mark Salter

Commit d97b46a64 added a new syscall (__NR_kcmp) to support checkpoint restore. It is currently x86-only, but that restriction will be removed in a subsequent patch. Unfortunately, the kernel checksyscalls script had a bug which suppressed any warning to other architectures that the kcmp syscall was not implemented. A patch to checksyscalls is being tested in linux-next and other architectures are seeing warnings about kcmp being unimplemented.

Quoted 4 lines

This patch adds __NR_kcmp to <asm-generic/unistd.h> so that kcmp is wired in for architectures using the generic syscall list.

If you have other patches lined up, can you add this one as well?

#2 lore raw
Quoted 10 lines · Arnd Bergmann
Quoted 9 lines · Mark Salter

Commit d97b46a64 added a new syscall (__NR_kcmp) to support checkpoint restore. It is currently x86-only, but that restriction will be removed in a subsequent patch. Unfortunately, the kernel checksyscalls script had a bug which suppressed any warning to other architectures that the kcmp syscall was not implemented. A patch to checksyscalls is being tested in linux-next and other architectures are seeing warnings about kcmp being unimplemented.

Quoted 8 lines
Quoted 4 lines

This patch adds __NR_kcmp to <asm-generic/unistd.h> so that kcmp is wired in for architectures using the generic syscall list.

If you have other patches lined up, can you add this one as well?

Yes. I can push it from the c6x tree.