Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

CRIS: Wire up missing syscalls

The related warnings:

CALL scripts/checksyscalls.sh
<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]

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>

authored by

Chen Gang and committed by
Jesper Nilsson
ee59843c f59625a8

+25 -1
+8
arch/cris/arch-v10/kernel/entry.S
··· 955 955 .long sys_process_vm_writev 956 956 .long sys_kcmp /* 350 */ 957 957 .long sys_finit_module 958 + .long sys_sched_setattr 959 + .long sys_sched_getattr 960 + .long sys_renameat2 961 + .long sys_seccomp /* 355 */ 962 + .long sys_getrandom 963 + .long sys_memfd_create 964 + .long sys_bpf 965 + .long sys_execveat 958 966 959 967 /* 960 968 * NOTE!! This doesn't have to be exact - we just have
+8
arch/cris/arch-v32/kernel/entry.S
··· 875 875 .long sys_process_vm_writev 876 876 .long sys_kcmp /* 350 */ 877 877 .long sys_finit_module 878 + .long sys_sched_setattr 879 + .long sys_sched_getattr 880 + .long sys_renameat2 881 + .long sys_seccomp /* 355 */ 882 + .long sys_getrandom 883 + .long sys_memfd_create 884 + .long sys_bpf 885 + .long sys_execveat 878 886 879 887 /* 880 888 * NOTE!! This doesn't have to be exact - we just have
+1 -1
arch/cris/include/asm/unistd.h
··· 4 4 #include <uapi/asm/unistd.h> 5 5 6 6 7 - #define NR_syscalls 360 7 + #define NR_syscalls 365 8 8 9 9 #include <arch/unistd.h> 10 10
+8
arch/cris/include/uapi/asm/unistd.h
··· 356 356 #define __NR_process_vm_writev 349 357 357 #define __NR_kcmp 350 358 358 #define __NR_finit_module 351 359 + #define __NR_sched_setattr 352 360 + #define __NR_sched_getattr 353 361 + #define __NR_renameat2 354 362 + #define __NR_seccomp 355 363 + #define __NR_getrandom 356 364 + #define __NR_memfd_create 357 365 + #define __NR_bpf 358 366 + #define __NR_execveat 359 359 367 360 368 #endif /* _UAPI_ASM_CRIS_UNISTD_H_ */