[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH -next v5 16/22] entry: Make syscall_exit_to_user_mode_prepare() not static
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@xxxxxxxxxx> --- include/linux/entry-common.h | 1 + kernel/entry/syscall-common.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h index b3233e8328c5..d11bdb4679b3 100644 --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -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 diff --git a/kernel/entry/syscall-common.c b/kernel/entry/syscall-common.c index 0eb036986ad4..f78285097111 100644 --- a/kernel/entry/syscall-common.c +++ b/kernel/entry/syscall-common.c @@ -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); -- 2.34.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |