* [PATCH v2] entry: Update outdated comment in entry_common.h
@ 2025-06-18 8:12 Khalid Ali
2025-06-20 21:14 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Khalid Ali @ 2025-06-18 8:12 UTC (permalink / raw)
To: tglx, peterz, luto; +Cc: linux-kernel, Khalid Ali
From: Khalid Ali <khaliidcaliy@gmail.com>
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().
Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
---
include/linux/entry-common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index dad1f257e3dd..49f5d99b254c 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -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
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] entry: Update outdated comment in entry_common.h
2025-06-18 8:12 [PATCH v2] entry: Update outdated comment in entry_common.h Khalid Ali
@ 2025-06-20 21:14 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2025-06-20 21:14 UTC (permalink / raw)
To: Khalid Ali, peterz, luto; +Cc: linux-kernel, Khalid Ali
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.
> From: Khalid Ali <khaliidcaliy@gmail.com>
>
> 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().
>
> Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
> ---
> include/linux/entry-common.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
> index dad1f257e3dd..49f5d99b254c 100644
> --- a/include/linux/entry-common.h
> +++ b/include/linux/entry-common.h
> @@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-20 21:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18 8:12 [PATCH v2] entry: Update outdated comment in entry_common.h Khalid Ali
2025-06-20 21:14 ` Thomas Gleixner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.