x86/entry: Refactor COND_SYSCALL macros
authorBrian Gerst <brgerst@gmail.com>
Fri, 13 Mar 2020 19:51:29 +0000 (15:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 15:03:19 +0000 (16:03 +0100)
commit6cc8d2b286d9e7168d72e342d1b031317cd7752b
treebff56982cb5516cd1af44dbb008bbff44bd39aa5
parentd2b5de495ee9838b3752806c135afd43b76b1e8f
x86/entry: Refactor COND_SYSCALL macros

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