From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org,
Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: Re: [PATCH] include: linux/iopoll: fix uninitialized warning
Date: Tue, 03 Sep 2024 13:39:34 +0200 [thread overview]
Message-ID: <172536357479.3512492.1134136258930191379.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20240903093712.453901-1-r.czerwinski@pengutronix.de>
On Tue, 03 Sep 2024 11:37:12 +0200, Rouven Czerwinski wrote:
> In gcc 13.3 there is a warning that start may be used unitialized:
>
> include/linux/iopoll.h:42:21: warning: ‘start’ may be used uninitialized [-Wmaybe-uninitialized]
> 42 | is_timeout(start, ((timeout_us) * USECOND))) { \
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> The warning is bogus since before usage of start !IN_PBL and
> timeout_us != 0 are checked for the case where start is used, but in
> this case it is also always initialized to get_time_ns().
> Initialize it to zero to silence the warning.
>
> [...]
Applied, thanks!
[1/1] include: linux/iopoll: fix uninitialized warning
https://git.pengutronix.de/cgit/barebox/commit/?id=7485dad4a06c (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
next prev parent reply other threads:[~2024-09-03 11:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-03 9:37 Rouven Czerwinski
2024-09-03 11:39 ` Sascha Hauer [this message]
2024-09-10 8:25 ` Ahmad Fatoum
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=172536357479.3512492.1134136258930191379.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=r.czerwinski@pengutronix.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