linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] syscalls: add __NR_kcmp syscall to generic unistd.h
@ 2012-09-24 19:47 Mark Salter
  2012-09-24 20:01 ` Arnd Bergmann
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Salter @ 2012-09-24 19:47 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linux-kernel, linux-arch, 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.

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

Signed-off-by: Mark Salter <msalter@redhat.com>
---
 include/asm-generic/unistd.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h
index 991ef01..3748ec9 100644
--- a/include/asm-generic/unistd.h
+++ b/include/asm-generic/unistd.h
@@ -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,
-- 
1.7.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] syscalls: add __NR_kcmp syscall to generic unistd.h
  2012-09-24 19:47 [PATCH] syscalls: add __NR_kcmp syscall to generic unistd.h Mark Salter
@ 2012-09-24 20:01 ` Arnd Bergmann
  2012-09-24 20:38   ` Mark Salter
  0 siblings, 1 reply; 3+ messages in thread
From: Arnd Bergmann @ 2012-09-24 20:01 UTC (permalink / raw)
  To: Mark Salter; +Cc: linux-kernel, linux-arch

On Monday 24 September 2012, Mark Salter wrote:
> 
> 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.
> 
> Signed-off-by: Mark Salter <msalter@redhat.com>

Acked-by: Arnd Bergmann <arnd@arndb.de>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] syscalls: add __NR_kcmp syscall to generic unistd.h
  2012-09-24 20:01 ` Arnd Bergmann
@ 2012-09-24 20:38   ` Mark Salter
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Salter @ 2012-09-24 20:38 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linux-kernel, linux-arch

On Mon, 2012-09-24 at 20:01 +0000, Arnd Bergmann wrote:
> On Monday 24 September 2012, Mark Salter wrote:
> > 
> > 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.
> > 
> > Signed-off-by: Mark Salter <msalter@redhat.com>
> 
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> 
> If you have other patches lined up, can you add this one as well?

Yes. I can push it from the c6x tree.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-09-24 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24 19:47 [PATCH] syscalls: add __NR_kcmp syscall to generic unistd.h Mark Salter
2012-09-24 20:01 ` Arnd Bergmann
2012-09-24 20:38   ` Mark Salter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).