Skip to content

Commit a1977d1

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390: wire up sys_renameat2
Actually this also enable sys_setattr and sys_getattr, since I forgot to increase NR_syscalls when adding those syscalls. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 9ea8066 commit a1977d1

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/s390/include/uapi/asm/unistd.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,8 @@
282282
#define __NR_finit_module 344
283283
#define __NR_sched_setattr 345
284284
#define __NR_sched_getattr 346
285-
#define NR_syscalls 345
285+
#define __NR_renameat2 347
286+
#define NR_syscalls 348
286287

287288
/*
288289
* There are some system calls that are not present on 64 bit, some

‎arch/s390/kernel/compat_wrapper.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,4 @@ COMPAT_SYSCALL_WRAP5(kcmp, pid_t, pid1, pid_t, pid2, int, type, unsigned long, i
213213
COMPAT_SYSCALL_WRAP3(finit_module, int, fd, const char __user *, uargs, int, flags);
214214
COMPAT_SYSCALL_WRAP3(sched_setattr, pid_t, pid, struct sched_attr __user *, attr, unsigned int, flags);
215215
COMPAT_SYSCALL_WRAP4(sched_getattr, pid_t, pid, struct sched_attr __user *, attr, unsigned int, size, unsigned int, flags);
216+
COMPAT_SYSCALL_WRAP5(renameat2, int, olddfd, const char __user *, oldname, int, newdfd, const char __user *, newname, unsigned int, flags);

‎arch/s390/kernel/syscalls.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,3 +355,4 @@ SYSCALL(sys_kcmp,sys_kcmp,compat_sys_kcmp)
355355
SYSCALL(sys_finit_module,sys_finit_module,compat_sys_finit_module)
356356
SYSCALL(sys_sched_setattr,sys_sched_setattr,compat_sys_sched_setattr) /* 345 */
357357
SYSCALL(sys_sched_getattr,sys_sched_getattr,compat_sys_sched_getattr)
358+
SYSCALL(sys_renameat2,sys_renameat2,compat_sys_renameat2)

0 commit comments

Comments
 (0)