entry: Update outdated comment in entry_common.h
PATCH v2 1/1 entry: Update outdated comment in entry_common.h
From: Khalid Ali <[email protected]>
The comment above syscall_enter_from_user_mode() refers to syscall_enter_from_user_mode_prepare(), which is no longer used. This can mislead readers trying to follow the entry path.
Update the comment to reflect the current implementation by replacing syscall_enter_from_user_mode_prepare() with enter_from_user_mode().
--- include/linux/entry-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/entry-common.h +1 -1
@@ -146,7 +146,7 @@ long syscall_trace_enter(struct pt_regs *regs, long syscall,* @syscall: The syscall number * * Invoked from architecture specific syscall entry code with interrupts -* enabled after invoking syscall_enter_from_user_mode_prepare() and extra +* enabled after invoking enter_from_user_mode() and extra * architecture specific work. * * Returns: The original or a modified syscall number
Signature · 1 line
2.49.0
On Wed, Jun 18 2025 at 08:12, Khalid Ali wrote:
$Subject: entry: Update outdated kernel doc for syscall_trace_enter()
The shortlog should describe the change concisely. 'in entry_common.h' tells absolutely nothing.
Quoted 19 lines
From: Khalid Ali <[email protected]>
The comment above
syscall_enter_from_user_mode()refers tosyscall_enter_from_user_mode_prepare(), which is no longer used. This can mislead readers trying to follow the entry path.Update the comment to reflect the current implementation by replacing
syscall_enter_from_user_mode_prepare()withenter_from_user_mode().Signed-off-by Khalid Ali <[email protected]>--- include/linux/entry-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/entry-common.h +0
-0
include/linux/entry-common.h long syscall_trace_enter(struct pt_regs *regs, long syscall, · line 150
Quoted 6 lines
include/linux/entry-common.h +1
-1@@ -146,7 +146,7 @@ long syscall_trace_enter(struct pt_regs *regs, long syscall,* @syscall: The syscall number * * Invoked from architecture specific syscall entry code with interrupts -* enabled after invoking syscall_enter_from_user_mode_prepare() and extra +* enabled after invoking enter_from_user_mode() and extra * architecture specific work.
And how is that more correct? I explained it to you in great detail what the prerequisites are:
https://lore.kernel.org/all/87cyb6q1aj.ffs@tglx
No?
Thanks,
tglx