Skip to content

Commit f34f0d3

Browse files
arndbhansendc
authored andcommitted
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
1 parent 056b44a commit f34f0d3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

arch/x86/include/asm/syscall.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ static inline int syscall_get_arch(struct task_struct *task)
127127
}
128128

129129
void do_syscall_64(struct pt_regs *regs, int nr);
130-
void do_int80_syscall_32(struct pt_regs *regs);
131-
long do_fast_syscall_32(struct pt_regs *regs);
132130

133131
#endif /* CONFIG_X86_32 */
134132

133+
void do_int80_syscall_32(struct pt_regs *regs);
134+
long do_fast_syscall_32(struct pt_regs *regs);
135+
long do_SYSENTER_32(struct pt_regs *regs);
136+
135137
#endif /* _ASM_X86_SYSCALL_H */

0 commit comments

Comments
 (0)