public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alarmtimer: Fix kerneldoc comment for alarmtimer_suspend()
@ 2026-02-05  8:51 Zhan Xusheng
  2026-02-24  8:48 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Zhan Xusheng @ 2026-02-05  8:51 UTC (permalink / raw)
  To: John Stultz; +Cc: linux-kernel, Zhan Xusheng

Updated comment to explain that `dev` is used for scheduling
wake-up events.

Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
---
 kernel/time/alarmtimer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index 069d93bfb0c7..2548292b207d 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -208,7 +208,7 @@ EXPORT_SYMBOL_GPL(alarm_expires_remaining);
 #ifdef CONFIG_RTC_CLASS
 /**
  * alarmtimer_suspend - Suspend time callback
- * @dev: unused
+ * @dev: the device that triggered the suspend, used for wake-up event
  *
  * When we are going into suspend, we look through the bases
  * to see which is the soonest timer to expire. We then
-- 
2.43.0


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

* Re: [PATCH] alarmtimer: Fix kerneldoc comment for alarmtimer_suspend()
  2026-02-05  8:51 [PATCH] alarmtimer: Fix kerneldoc comment for alarmtimer_suspend() Zhan Xusheng
@ 2026-02-24  8:48 ` Thomas Gleixner
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2026-02-24  8:48 UTC (permalink / raw)
  To: Zhan Xusheng, John Stultz; +Cc: linux-kernel, Zhan Xusheng

On Thu, Feb 05 2026 at 16:51, Zhan Xusheng wrote:
> Updated comment to explain that `dev` is used for scheduling
> wake-up events.

That's just wrong.

> Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
> ---
>  kernel/time/alarmtimer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
> index 069d93bfb0c7..2548292b207d 100644
> --- a/kernel/time/alarmtimer.c
> +++ b/kernel/time/alarmtimer.c
> @@ -208,7 +208,7 @@ EXPORT_SYMBOL_GPL(alarm_expires_remaining);
>  #ifdef CONFIG_RTC_CLASS
>  /**
>   * alarmtimer_suspend - Suspend time callback
> - * @dev: unused
> + * @dev: the device that triggered the suspend, used for wake-up event

Which device triggered the suspend? Surely not @dev.

The code does not care about @dev as documented because it uses its
own mechanism to retrieve the wakeup RTC device.

So you replace a perfectly correct comment with incomprehensible
garbage. What's the improvement here?

Thanks,

        tglx



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

end of thread, other threads:[~2026-02-24  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-05  8:51 [PATCH] alarmtimer: Fix kerneldoc comment for alarmtimer_suspend() Zhan Xusheng
2026-02-24  8:48 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox