]> git.baikalelectronics.ru Git - kernel.git/commit
kernel: use kernel_wait4() instead of sys_wait4()
authorDominik Brodowski <linux@dominikbrodowski.net>
Sun, 11 Mar 2018 10:34:26 +0000 (11:34 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 2 Apr 2018 18:14:51 +0000 (20:14 +0200)
commit5b19524cd10e2d9512d55df6d0a790d5dc79171d
tree6d94625d00a319d89fc8b9b6be6fd606a2c9a1d0
parent50d313e92f91bfeaa3c3c32c84261762dc6b37b3
kernel: use kernel_wait4() instead of sys_wait4()

All call sites of sys_wait4() set *rusage to NULL. Therefore, there is
no need for the copy_to_user() handling of *rusage, and we can use
kernel_wait4() directly.

This patch is part of a series which removes in-kernel calls to syscalls.
On this basis, the syscall entry path can be streamlined. For details, see
http://lkml.kernel.org/r/20180325162527.GA17492@light.dominikbrodowski.net

Acked-by: Luis R. Rodriguez <mcgrof@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
kernel/exit.c
kernel/pid_namespace.c
kernel/umh.c