x86/entry: Add do_SYSENTER_32() prototype
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 19:35:40 +0000 (21:35 +0200)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 18 May 2023 18:56:18 +0000 (11:56 -0700)
commitf34f0d3c10eb4d3160fc6fe7a2482cb78d3b0c12
tree3e1982e86e4a9eb8377bcb6335693e9e3dc6c48c
parent056b44a4d10907ec8153863b2a0564e808ef1440
x86/entry: Add do_SYSENTER_32() prototype

The 32-bit system call entry points can be called on both 32-bit
and 64-bit kernels, but on the former the declarations are hidden:

arch/x86/entry/common.c:238:24: error: no previous prototype for 'do_SYSENTER_32' [-Werror=missing-prototypes]

Move them all out of the #ifdef block to avoid the warnings.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/all/20230516193549.544673-12-arnd%40kernel.org
arch/x86/include/asm/syscall.h