* [PATCH] kernel/entry: Remove duplicate function documentation
@ 2025-06-15 12:04 Khalid Ali
2025-06-20 21:16 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Khalid Ali @ 2025-06-15 12:04 UTC (permalink / raw)
To: tglx, peterz, luto; +Cc: linux-kernel, Khalid Ali
Move exit_to_user_mode_loop() documentation to "entry-common.h",
above function prototype for consistency and remove duplicate
function doc.
Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
---
include/linux/entry-common.h | 2 ++
kernel/entry/common.c | 5 -----
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index f94f3fdf15fc..dad1f257e3dd 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -302,6 +302,8 @@ void arch_do_signal_or_restart(struct pt_regs *regs);
/**
* exit_to_user_mode_loop - do any pending work before leaving to user space
+ * @regs: Pointer to pt_regs on entry stack
+ * @ti_work: TIF work flags as read by the caller
*/
unsigned long exit_to_user_mode_loop(struct pt_regs *regs,
unsigned long ti_work);
diff --git a/kernel/entry/common.c b/kernel/entry/common.c
index 3e9f2d40230f..67df77732fd2 100644
--- a/kernel/entry/common.c
+++ b/kernel/entry/common.c
@@ -81,11 +81,6 @@ noinstr void syscall_enter_from_user_mode_prepare(struct pt_regs *regs)
/* Workaround to allow gradual conversion of architecture code */
void __weak arch_do_signal_or_restart(struct pt_regs *regs) { }
-/**
- * exit_to_user_mode_loop - do any pending work before leaving to user space
- * @regs: Pointer to pt_regs on entry stack
- * @ti_work: TIF work flags as read by the caller
- */
__always_inline unsigned long exit_to_user_mode_loop(struct pt_regs *regs,
unsigned long ti_work)
{
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel/entry: Remove duplicate function documentation
2025-06-15 12:04 [PATCH] kernel/entry: Remove duplicate function documentation Khalid Ali
@ 2025-06-20 21:16 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2025-06-20 21:16 UTC (permalink / raw)
To: Khalid Ali, peterz, luto; +Cc: linux-kernel, Khalid Ali
On Sun, Jun 15 2025 at 12:04, Khalid Ali wrote:
"kernel/entry:" is still not the proper subsystem prefix.
Thanks,
tglx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-20 21:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-15 12:04 [PATCH] kernel/entry: Remove duplicate function documentation Khalid Ali
2025-06-20 21:16 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).