[PATCH] powerpc/cell: compile fixes
authorDave Jones <davej@redhat.com>
Sat, 1 Apr 2006 04:53:09 +0000 (23:53 -0500)
committerPaul Mackerras <paulus@samba.org>
Sat, 1 Apr 2006 11:37:14 +0000 (22:37 +1100)
Missing include for __NR_syscalls, and missing sys_splice() that
causes build-time failure due to compile-time bounds check on
spu_syscall_table.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spu_callbacks.c
arch/powerpc/platforms/cell/spufs/run.c

index 3a4245c926ade05db556dd11fef29d524335913a..6594bec7388243d8581f816dbca1d98b29176b01 100644 (file)
@@ -316,6 +316,7 @@ void *spu_syscall_table[] = {
        [__NR_pselect6]                 sys_ni_syscall, /* sys_pselect */
        [__NR_ppoll]                    sys_ni_syscall, /* sys_ppoll */
        [__NR_unshare]                  sys_unshare,
+       [__NR_splice]                   sys_splice,
 };
 
 long spu_sys_callback(struct spu_syscall_block *s)
index c04e078c0fe573dc41fc1576be4154d06dcc39f6..483c8b76232c010de9b1f10e6fc1b88656eb98cf 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/ptrace.h>
 
 #include <asm/spu.h>
+#include <asm/unistd.h>
 
 #include "spufs.h"