]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit86994070aeefdabf417207831917cc5e27cf4638
tree165c441a799d7d828550c6282c7bf868fa4ea4b9
parentd73d9c0e4f85e0ff14817bc55d73c012ab5d71d5
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