If some of syscalls are not implemented, they will be redirected to
sys_ni_call.

The related warnings:

  <stdin>:1142:2: warning: #warning syscall timerfd_create not implemented 
[-Wcpp]
  <stdin>:1151:2: warning: #warning syscall timerfd_settime not implemented 
[-Wcpp]
  <stdin>:1154:2: warning: #warning syscall timerfd_gettime not implemented 
[-Wcpp]
  <stdin>:1157:2: warning: #warning syscall signalfd4 not implemented [-Wcpp]
  <stdin>:1160:2: warning: #warning syscall eventfd2 not implemented [-Wcpp]
  <stdin>:1163:2: warning: #warning syscall epoll_create1 not implemented 
[-Wcpp]
  <stdin>:1166:2: warning: #warning syscall dup3 not implemented [-Wcpp]
  <stdin>:1169:2: warning: #warning syscall pipe2 not implemented [-Wcpp]
  <stdin>:1172:2: warning: #warning syscall inotify_init1 not implemented 
[-Wcpp]
  <stdin>:1175:2: warning: #warning syscall preadv not implemented [-Wcpp]
  <stdin>:1178:2: warning: #warning syscall pwritev not implemented [-Wcpp]
  <stdin>:1181:2: warning: #warning syscall rt_tgsigqueueinfo not implemented 
[-Wcpp]
  <stdin>:1184:2: warning: #warning syscall perf_event_open not implemented 
[-Wcpp]
  <stdin>:1187:2: warning: #warning syscall recvmmsg not implemented [-Wcpp]
  <stdin>:1190:2: warning: #warning syscall fanotify_init not implemented 
[-Wcpp]
  <stdin>:1193:2: warning: #warning syscall fanotify_mark not implemented 
[-Wcpp]
  <stdin>:1196:2: warning: #warning syscall prlimit64 not implemented [-Wcpp]
  <stdin>:1199:2: warning: #warning syscall name_to_handle_at not implemented 
[-Wcpp]
  <stdin>:1202:2: warning: #warning syscall open_by_handle_at not implemented 
[-Wcpp]
  <stdin>:1205:2: warning: #warning syscall clock_adjtime not implemented 
[-Wcpp]
  <stdin>:1208:2: warning: #warning syscall syncfs not implemented [-Wcpp]
  <stdin>:1211:2: warning: #warning syscall sendmmsg not implemented [-Wcpp]
  <stdin>:1217:2: warning: #warning syscall process_vm_readv not implemented 
[-Wcpp]
  <stdin>:1220:2: warning: #warning syscall process_vm_writev not implemented 
[-Wcpp]
  <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]
  <stdin>:1253:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]

Signed-off-by: Chen Gang <gang.chen.5...@gmail.com>
---
 arch/m32r/include/asm/unistd.h      |  3 +--
 arch/m32r/include/uapi/asm/unistd.h | 35 +++++++++++++++++++++++++++++++++++
 arch/m32r/kernel/syscall_table.S    | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 71 insertions(+), 2 deletions(-)

diff --git a/arch/m32r/include/asm/unistd.h b/arch/m32r/include/asm/unistd.h
index 59db801..512207a 100644
--- a/arch/m32r/include/asm/unistd.h
+++ b/arch/m32r/include/asm/unistd.h
@@ -3,8 +3,7 @@
 
 #include <uapi/asm/unistd.h>
 
-
-#define NR_syscalls 326
+#define NR_syscalls 361
 
 #define __ARCH_WANT_STAT64
 #define __ARCH_WANT_SYS_ALARM
diff --git a/arch/m32r/include/uapi/asm/unistd.h 
b/arch/m32r/include/uapi/asm/unistd.h
index 5a54f2a..f3d6264 100644
--- a/arch/m32r/include/uapi/asm/unistd.h
+++ b/arch/m32r/include/uapi/asm/unistd.h
@@ -331,5 +331,40 @@
 #define __NR_eventfd           323
 #define __NR_fallocate         324
 #define __NR_setns             325
+#define __NR_timerfd_create    326
+#define __NR_timerfd_settime   327
+#define __NR_timerfd_gettime   328
+#define __NR_signalfd4         329
+#define __NR_eventfd2          330
+#define __NR_epoll_create1     331
+#define __NR_dup3              332
+#define __NR_pipe2             333
+#define __NR_inotify_init1     334
+#define __NR_preadv            335
+#define __NR_pwritev           336
+#define __NR_rt_tgsigqueueinfo 337
+#define __NR_perf_event_open   338
+#define __NR_recvmmsg          339
+#define __NR_fanotify_init     340
+#define __NR_fanotify_mark     341
+#define __NR_prlimit64         342
+#define __NR_name_to_handle_at 343
+#define __NR_open_by_handle_at 344
+#define __NR_clock_adjtime     345
+#define __NR_syncfs            346
+#define __NR_sendmmsg          347
+#define __NR_process_vm_readv  348
+#define __NR_process_vm_writev 349
+#define __NR_kcmp              350
+#define __NR_finit_module      351
+#define __NR_sched_setattr     352
+#define __NR_sched_getattr     353
+#define __NR_renameat2         354
+#define __NR_seccomp           355
+#define __NR_getrandom         356
+#define __NR_memfd_create      357
+#define __NR_bpf               358
+#define __NR_execveat          359
+#define __NR_userfaultfd       360
 
 #endif /* _UAPI_ASM_M32R_UNISTD_H */
diff --git a/arch/m32r/kernel/syscall_table.S b/arch/m32r/kernel/syscall_table.S
index f365c19..6f37371 100644
--- a/arch/m32r/kernel/syscall_table.S
+++ b/arch/m32r/kernel/syscall_table.S
@@ -325,3 +325,38 @@ ENTRY(sys_call_table)
        .long sys_eventfd
        .long sys_fallocate
        .long sys_setns                 /* 325 */
+       .long sys_timerfd_create
+       .long sys_timerfd_settime
+       .long sys_timerfd_gettime
+       .long sys_signalfd4
+       .long sys_eventfd2              /* 330 */
+       .long sys_epoll_create1
+       .long sys_dup3
+       .long sys_pipe2
+       .long sys_inotify_init1
+       .long sys_preadv                /* 335 */
+       .long sys_pwritev
+       .long sys_rt_tgsigqueueinfo
+       .long sys_perf_event_open
+       .long sys_recvmmsg
+       .long sys_fanotify_init         /* 340 */
+       .long sys_fanotify_mark
+       .long sys_prlimit64
+       .long sys_name_to_handle_at
+       .long sys_open_by_handle_at
+       .long sys_clock_adjtime         /* 345 */
+       .long sys_syncfs
+       .long sys_sendmmsg
+       .long sys_process_vm_readv
+       .long sys_process_vm_writev
+       .long sys_kcmp                  /* 350 */
+       .long sys_finit_module
+       .long sys_sched_setattr
+       .long sys_sched_getattr
+       .long sys_renameat2
+       .long sys_seccomp               /* 355 */
+       .long sys_getrandom
+       .long sys_memfd_create
+       .long sys_bpf
+       .long sys_execveat
+       .long sys_userfaultfd           /* 360 */
-- 
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to