diff options
author | Chen Gang <xili_gchen_5257@hotmail.com> | 2015-04-13 10:02:58 -0400 |
---|---|---|
committer | Steven Miao <realmz6@gmail.com> | 2015-04-23 23:00:35 -0400 |
commit | 4f650a5966038f439c5f8d7d85dcc6b3a77a4e7c (patch) | |
tree | 43402fc74734f5589d1c570621c17334990d4b89 | |
parent | b9061ef5d4da934cfc6e052a1e486077d29f267d (diff) |
blackfin: Wire up missing syscalls
The related syscalls are below which may cause samples/kdbus building
break in next-20150401 tree, the related information and error:
CALL scripts/checksyscalls.sh
<stdin>:1223:2: warning: #warning syscall kcmp not implemented [-Wcpp]
<stdin>:1226:2: warning: #warning syscall finit_module not implemented [-Wcpp]
<stdin>:1229:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1232:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
<stdin>:1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
<stdin>:1238:2: warning: #warning syscall seccomp not implemented [-Wcpp]
<stdin>:1241:2: warning: #warning syscall getrandom not implemented [-Wcpp]
<stdin>:1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp]
<stdin>:1247:2: warning: #warning syscall bpf not implemented [-Wcpp]
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
[...]
HOSTCC samples/kdbus/kdbus-workers
samples/kdbus/kdbus-workers.c: In function ‘prime_new’:
samples/kdbus/kdbus-workers.c:930:18: error: ‘__NR_memfd_create’ undeclared (first use in this function)
p->fd = syscall(__NR_memfd_create, "prime-area", MFD_CLOEXEC);
^
samples/kdbus/kdbus-workers.c:930:18: note: each undeclared identifier is reported only once for each function it appears in
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
-rw-r--r-- | arch/blackfin/include/uapi/asm/unistd.h | 12 | ||||
-rw-r--r-- | arch/blackfin/mach-common/entry.S | 10 |
2 files changed, 21 insertions, 1 deletions
diff --git a/arch/blackfin/include/uapi/asm/unistd.h b/arch/blackfin/include/uapi/asm/unistd.h index a4511649a864..0cb9078ef482 100644 --- a/arch/blackfin/include/uapi/asm/unistd.h +++ b/arch/blackfin/include/uapi/asm/unistd.h | |||
@@ -401,8 +401,18 @@ | |||
401 | #define __NR_sendmmsg 380 | 401 | #define __NR_sendmmsg 380 |
402 | #define __NR_process_vm_readv 381 | 402 | #define __NR_process_vm_readv 381 |
403 | #define __NR_process_vm_writev 382 | 403 | #define __NR_process_vm_writev 382 |
404 | #define __NR_kcmp 383 | ||
405 | #define __NR_finit_module 384 | ||
406 | #define __NR_sched_setattr 385 | ||
407 | #define __NR_sched_getattr 386 | ||
408 | #define __NR_renameat2 387 | ||
409 | #define __NR_seccomp 388 | ||
410 | #define __NR_getrandom 389 | ||
411 | #define __NR_memfd_create 390 | ||
412 | #define __NR_bpf 391 | ||
413 | #define __NR_execveat 392 | ||
404 | 414 | ||
405 | #define __NR_syscall 383 | 415 | #define __NR_syscall 393 /* For internal using, not implemented */ |
406 | #define NR_syscalls __NR_syscall | 416 | #define NR_syscalls __NR_syscall |
407 | 417 | ||
408 | /* Old optional stuff no one actually uses */ | 418 | /* Old optional stuff no one actually uses */ |
diff --git a/arch/blackfin/mach-common/entry.S b/arch/blackfin/mach-common/entry.S index 86b5a095c5a1..8d9431e22e8c 100644 --- a/arch/blackfin/mach-common/entry.S +++ b/arch/blackfin/mach-common/entry.S | |||
@@ -1694,6 +1694,16 @@ ENTRY(_sys_call_table) | |||
1694 | .long _sys_sendmmsg /* 380 */ | 1694 | .long _sys_sendmmsg /* 380 */ |
1695 | .long _sys_process_vm_readv | 1695 | .long _sys_process_vm_readv |
1696 | .long _sys_process_vm_writev | 1696 | .long _sys_process_vm_writev |
1697 | .long _sys_kcmp | ||
1698 | .long _sys_finit_module | ||
1699 | .long _sys_sched_setattr /* 385 */ | ||
1700 | .long _sys_sched_getattr | ||
1701 | .long _sys_renameat2 | ||
1702 | .long _sys_seccomp | ||
1703 | .long _sys_getrandom | ||
1704 | .long _sys_memfd_create /* 390 */ | ||
1705 | .long _sys_bpf | ||
1706 | .long _sys_execveat | ||
1697 | 1707 | ||
1698 | .rept NR_syscalls-(.-_sys_call_table)/4 | 1708 | .rept NR_syscalls-(.-_sys_call_table)/4 |
1699 | .long _sys_ni_syscall | 1709 | .long _sys_ni_syscall |