x86/entry: Refactor SYSCALL_DEFINEx macros
authorBrian Gerst <brgerst@gmail.com>
Fri, 13 Mar 2020 19:51:27 +0000 (15:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 15:03:18 +0000 (16:03 +0100)
commit4399e0cf494f739af7e0648f52fe43311ecd1bea
tree19c723c4e3122020c1e7b6faaa4040aea0b7d737
parent810f80a61be8c1d4a574082737f7a18c7459fa7b
x86/entry: Refactor SYSCALL_DEFINEx macros

Pull the common code out from the SYSCALL_DEFINEx macros into a new
__SYS_STUBx 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-2-brgerst@gmail.com
arch/x86/include/asm/syscall_wrapper.h