Patchwork Wire up recvmmsg syscall

login
register
mail settings
Submitter Benjamin Herrenschmidt
Date Jan. 14, 2010, 4:11 a.m.
Message ID <1263442293.724.324.camel@pasglop>
Download mbox | patch
Permalink /patch/42847/
State Rejected
Headers show

Comments

Benjamin Herrenschmidt - Jan. 14, 2010, 4:11 a.m.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 arch/powerpc/include/asm/systbl.h |    2 ++
 arch/powerpc/include/asm/unistd.h |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)
Benjamin Herrenschmidt - Jan. 14, 2010, 4:21 a.m.
On Thu, 2010-01-14 at 15:11 +1100, Benjamin Herrenschmidt wrote:
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>  arch/powerpc/include/asm/systbl.h |    2 ++
>  arch/powerpc/include/asm/unistd.h |    3 ++-
>  2 files changed, 4 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
> index 07d2d19..0e92c23 100644
> --- a/arch/powerpc/include/asm/systbl.h
> +++ b/arch/powerpc/include/asm/systbl.h
> @@ -326,3 +326,5 @@ SYSCALL_SPU(perf_event_open)
>  COMPAT_SYS_SPU(preadv)
>  COMPAT_SYS_SPU(pwritev)
>  COMPAT_SYS(rt_tgsigqueueinfo)
> +COMPAT_SYS_SPU(recvmmsg)
> +

Ignore. We don't need it, it's part of socketcalls. In fact, i386
neither, it's a bug there.

Cheers,
Ben.

Patch

diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index 07d2d19..0e92c23 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -326,3 +326,5 @@  SYSCALL_SPU(perf_event_open)
 COMPAT_SYS_SPU(preadv)
 COMPAT_SYS_SPU(pwritev)
 COMPAT_SYS(rt_tgsigqueueinfo)
+COMPAT_SYS_SPU(recvmmsg)
+
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index f6ca761..bbf2ee9 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -345,10 +345,11 @@ 
 #define __NR_preadv		320
 #define __NR_pwritev		321
 #define __NR_rt_tgsigqueueinfo	322
+#define __NR_recvmmsg		323
 
 #ifdef __KERNEL__
 
-#define __NR_syscalls		323
+#define __NR_syscalls		324
 
 #define __NR__exit __NR_exit
 #define NR_syscalls	__NR_syscalls