linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kernel/entry: Fix misleading comment in irqentry_enter()
@ 2025-06-14 19:26 Khalid Ali
  2025-06-16  7:08 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Khalid Ali @ 2025-06-14 19:26 UTC (permalink / raw)
  To: tglx, peterz, luto, linux-kernel; +Cc: Khalid Ali

Change irqentry_enter_from_user_mode() to enter_from_user_mode(),
because enter_from_user_mode() function is the one doing the action 
comment indicates.

Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
---
 kernel/entry/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/entry/common.c b/kernel/entry/common.c
index a8dd1f27417c..f49e3440204d 100644
--- a/kernel/entry/common.c
+++ b/kernel/entry/common.c
@@ -224,7 +224,7 @@ noinstr irqentry_state_t irqentry_enter(struct pt_regs *regs)
 		/*
 		 * If RCU is not watching then the same careful
 		 * sequence vs. lockdep and tracing is required
-		 * as in irqentry_enter_from_user_mode().
+		 * as in enter_from_user_mode().
 		 */
 		lockdep_hardirqs_off(CALLER_ADDR0);
 		ct_irq_enter();
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernel/entry: Fix misleading comment in irqentry_enter()
  2025-06-14 19:26 [PATCH] kernel/entry: Fix misleading comment in irqentry_enter() Khalid Ali
@ 2025-06-16  7:08 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2025-06-16  7:08 UTC (permalink / raw)
  To: Khalid Ali, peterz, luto, linux-kernel; +Cc: Khalid Ali

On Sat, Jun 14 2025 at 19:26, Khalid Ali wrote:
> Change irqentry_enter_from_user_mode() to enter_from_user_mode(),
> because enter_from_user_mode() function is the one doing the action 
> comment indicates.

irqentry_enter_from_user_mode() is what is called in the user entry
branch, so the comment is not misleading at all. If someone can't follow
that function and figure out that it calls enter_from_user_mode() so be
it.

Thanks,

        tglx


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-16  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-14 19:26 [PATCH] kernel/entry: Fix misleading comment in irqentry_enter() Khalid Ali
2025-06-16  7:08 ` 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).