x86/entry/64: Move sys_ni_syscall stub to common.c
authorBrian Gerst <brgerst@gmail.com>
Fri, 13 Mar 2020 19:51:32 +0000 (15:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 15:03:20 +0000 (16:03 +0100)
commitcc42c045af1ff4dee875196f8fe7d6ed1f29ea64
treea56e67651ad9ce1a480d735272d353ede76cd096
parent27dd84fafcd5e3c565164bb303fe8ec8ef59e147
x86/entry/64: Move sys_ni_syscall stub to common.c

so it can be available to multiple syscall tables.  Also directly return
-ENOSYS instead of bouncing to the generic sys_ni_syscall().

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200313195144.164260-7-brgerst@gmail.com
arch/x86/entry/common.c
arch/x86/entry/syscall_64.c
arch/x86/include/asm/syscall_wrapper.h