Skip to content

Commit 6666bb7

Browse files
svens-s390KAGA-KOKO
authored andcommitted
entry: Rename enter_from_user_mode()
In order to make this function publicly available rename it so it can still be inlined. An additional enter_from_user_mode() function will be added with a later commit. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20201201142755.31931-2-svens@linux.ibm.com
1 parent a4452e6 commit 6666bb7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎kernel/entry/common.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <trace/events/syscalls.h>
1212

1313
/**
14-
* enter_from_user_mode - Establish state when coming from user mode
14+
* __enter_from_user_mode - Establish state when coming from user mode
1515
*
1616
* Syscall/interrupt entry disables interrupts, but user mode is traced as
1717
* interrupts enabled. Also with NO_HZ_FULL RCU might be idle.
@@ -20,7 +20,7 @@
2020
* 2) Invoke context tracking if enabled to reactivate RCU
2121
* 3) Trace interrupts off state
2222
*/
23-
static __always_inline void enter_from_user_mode(struct pt_regs *regs)
23+
static __always_inline void __enter_from_user_mode(struct pt_regs *regs)
2424
{
2525
arch_check_user_regs(regs);
2626
lockdep_hardirqs_off(CALLER_ADDR0);
@@ -103,7 +103,7 @@ noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall)
103103
{
104104
long ret;
105105

106-
enter_from_user_mode(regs);
106+
__enter_from_user_mode(regs);
107107

108108
instrumentation_begin();
109109
local_irq_enable();
@@ -115,7 +115,7 @@ noinstr long syscall_enter_from_user_mode(struct pt_regs *regs, long syscall)
115115

116116
noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs)
117117
{
118-
enter_from_user_mode(regs);
118+
__enter_from_user_mode(regs);
119119
instrumentation_begin();
120120
local_irq_enable();
121121
instrumentation_end();
@@ -304,7 +304,7 @@ __visible noinstr void syscall_exit_to_user_mode(struct pt_regs *regs)
304304

305305
noinstr void irqentry_enter_from_user_mode(struct pt_regs *regs)
306306
{
307-
enter_from_user_mode(regs);
307+
__enter_from_user_mode(regs);
308308
}
309309

310310
noinstr void irqentry_exit_to_user_mode(struct pt_regs *regs)

0 commit comments

Comments
 (0)