From: sashiko-bot@kernel.org
To: "Thomas Weißschuh (Schneider Electric)"
<thomas.weissschuh@linutronix.de>
Cc: linux-rtc@vger.kernel.org,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH v2 3/4] rtc: lib: Implement time64_to_tm() in terms of time64_to_tm()
Date: Mon, 23 Nov 2026 08:12:26 +0000 [thread overview]
Message-ID: <sashiko-outbox-228888@kernel.org> (raw)
In-Reply-To: <20261123-time-time64-to-tm-v2-3-117cf8afebce@linutronix.de>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] rtc: lib: unexplained noinline on rtc_time64_to_tm() and title
typo
--
commit d52e75a7c141cd0560b1032f0c0041c5111a73da
Author: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
rtc: lib: Implement time64_to_tm() in terms of time64_to_tm()
This commit replaces the calendar calculation in rtc_time64_to_tm() with a
call to time64_to_tm().
> diff --git a/drivers/rtc/lib.c b/drivers/rtc/lib.c
> index f7051592a6e38..48a26b579b4c7 100644
> --- a/drivers/rtc/lib.c
> +++ b/drivers/rtc/lib.c
> @@ -46,110 +46,23 @@ EXPORT_SYMBOL(rtc_year_days);
> * rtc_time64_to_tm - converts time64_t to rtc_time.
> *
> * @time: The number of seconds since 01-01-1970 00:00:00.
> - * Works for values since at least 1900
> - * @tm: Pointer to the struct rtc_time.
> + * @rtc_tm: Pointer to the struct rtc_time.
> */
> -void rtc_time64_to_tm(time64_t time, struct rtc_time *tm)
> +noinline void rtc_time64_to_tm(time64_t time, struct rtc_time *rtc_tm)
[Severity: Low]
Why is rtc_time64_to_tm() marked noinline here? Neither a comment nor the
commit message explains why inlining into callers in drivers/rtc/lib.c
(such as rtc_ktime_to_tm()) should be prevented.
Also, the commit subject says "Implement time64_to_tm() in terms of
time64_to_tm()" instead of "Implement rtc_time64_to_tm() in terms of
time64_to_tm()".
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-time-time64-to-tm-v2-0-117cf8afebce@linutronix.de?part=3
next prev parent reply other threads:[~2026-11-23 8:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 8:05 [PATCH v2 0/4] time: time64_to_tm() cleanups Thomas Weißschuh (Schneider Electric)
2026-11-23 8:05 ` [PATCH v2 1/4] time: Avoid 64-bit by 64-bit division in time64_to_tm() Thomas Weißschuh (Schneider Electric)
2026-11-23 8:05 ` [PATCH v2 2/4] time: test: Avoid unnecessary divisions in time64_to_tm() test Thomas Weißschuh (Schneider Electric)
2026-11-23 8:05 ` [PATCH v2 3/4] rtc: lib: Implement time64_to_tm() in terms of time64_to_tm() Thomas Weißschuh (Schneider Electric)
2026-11-23 8:12 ` sashiko-bot [this message]
2026-11-23 8:05 ` [PATCH v2 4/4] rtc: test: Remove test_rtc_lib.c Thomas Weißschuh (Schneider Electric)
2026-11-23 8:12 ` [PATCH v2 0/4] time: time64_to_tm() cleanups sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-228888@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-rtc@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=thomas.weissschuh@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox