@@ -172,5 +172,6 @@ void syscall_exit_to_user_mode_work(struct pt_regs *regs);
* compelling architectural reason to use the separate functions.
*/
void syscall_exit_to_user_mode(struct pt_regs *regs);
+void syscall_exit_to_user_mode_prepare(struct pt_regs *regs);
#endif
@@ -115,7 +115,7 @@ static void syscall_exit_work(struct pt_regs *regs, unsigned long work)
* Syscall specific exit to user mode preparation. Runs with interrupts
* enabled.
*/
-static void syscall_exit_to_user_mode_prepare(struct pt_regs *regs)
+void syscall_exit_to_user_mode_prepare(struct pt_regs *regs)
{
unsigned long work = READ_ONCE(current_thread_info()->syscall_work);
unsigned long nr = syscall_get_nr(current, regs);
In order to switch to the generic entry for arm64, make syscall_exit_to_user_mode_prepare() not static and can be used by arm64. No functional changes. Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> --- include/linux/entry-common.h | 1 + kernel/entry/syscall-common.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)