[PATCH] powerpc/cell: remove BUILD_BUG_ON and add sys_tee to spu_syscall_table

Every time a new syscall gets added, a BUILD_BUG_ON in
arch/powerpc/platforms/cell/spu_callbacks.c gets triggered.
Since the addition of a new syscall is rather harmless,
the error should just be removed.

While we're here, add sys_tee to the list and add a comment
to systbl.S to remind people that there is another list
on powerpc.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by Arnd Bergmann and committed by Paul Mackerras 23b2527d 60162e49

+7 -3
+5
arch/powerpc/kernel/systbl.S
··· 324 324 SYSCALL(unshare) 325 325 SYSCALL(splice) 326 326 SYSCALL(tee) 327 + 328 + /* 329 + * please add new calls to arch/powerpc/platforms/cell/spu_callbacks.c 330 + * as well when appropriate. 331 + */
+2 -3
arch/powerpc/platforms/cell/spu_callbacks.c
··· 317 317 [__NR_ppoll] sys_ni_syscall, /* sys_ppoll */ 318 318 [__NR_unshare] sys_unshare, 319 319 [__NR_splice] sys_splice, 320 + [__NR_tee] sys_tee, 320 321 }; 321 322 322 323 long spu_sys_callback(struct spu_syscall_block *s) 323 324 { 324 325 long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); 325 326 326 - BUILD_BUG_ON(ARRAY_SIZE(spu_syscall_table) != __NR_syscalls); 327 - 328 327 syscall = spu_syscall_table[s->nr_ret]; 329 328 330 - if (s->nr_ret >= __NR_syscalls) { 329 + if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { 331 330 pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); 332 331 return -ENOSYS; 333 332 }