x86/entry: Refactor SYSCALL_DEFINE0 macros
authorBrian Gerst <brgerst@gmail.com>
Fri, 13 Mar 2020 19:51:28 +0000 (15:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 15:03:19 +0000 (16:03 +0100)
commitd2b5de495ee9838b3752806c135afd43b76b1e8f
tree165c441a799d7d828550c6282c7bf868fa4ea4b9
parent4399e0cf494f739af7e0648f52fe43311ecd1bea
x86/entry: Refactor SYSCALL_DEFINE0 macros

Pull the common code out from the SYSCALL_DEFINE0 macros into a new
__SYS_STUB0 macro.  Also conditionalize the X64 version in preparation for
enabling syscall wrappers on 32-bit native kernels.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Link: https://lkml.kernel.org/r/20200313195144.164260-3-brgerst@gmail.com
arch/x86/include/asm/syscall_wrapper.h