x86/entry: Refactor SYS_NI macros
authorBrian Gerst <brgerst@gmail.com>
Fri, 13 Mar 2020 19:51:30 +0000 (15:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 15:03:20 +0000 (16:03 +0100)
commita74d187c2df3a382b8ab6227da34cba690e71e4d
tree2454e71dcce51682fa836654d14f10800ed3e259
parent6cc8d2b286d9e7168d72e342d1b031317cd7752b
x86/entry: Refactor SYS_NI macros

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