From: Lee Jones <lee@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>,
Richard Fitzgerald <rf@opensource.cirrus.com>,
Lee Jones <lee@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Arnd Bergmann <arnd@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>,
Nick Desaulniers <nick.desaulniers+lkml@gmail.com>,
Bill Wendling <morbo@google.com>,
Justin Stitt <justinstitt@google.com>,
linux-sound@vger.kernel.org, patches@opensource.cirrus.com,
linux-kernel@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: (subset) [PATCH] mfd: madera: work around false-positive -Wininitialized warning
Date: Tue, 02 Sep 2025 09:15:03 +0100 [thread overview]
Message-ID: <175680090336.2185785.11760207261424041452.b4-ty@kernel.org> (raw)
In-Reply-To: <20250807071932.4085458-1-arnd@kernel.org>
On Thu, 07 Aug 2025 09:19:28 +0200, Arnd Bergmann wrote:
> clang-21 warns about one uninitialized variable getting dereferenced
> in madera_dev_init:
>
> drivers/mfd/madera-core.c:739:10: error: variable 'mfd_devs' is uninitialized when used here [-Werror,-Wuninitialized]
> 739 | mfd_devs, n_devs,
> | ^~~~~~~~
> drivers/mfd/madera-core.c:459:33: note: initialize the variable 'mfd_devs' to silence this warning
> 459 | const struct mfd_cell *mfd_devs;
> | ^
> | = NULL
>
> [...]
Applied, thanks!
[1/1] mfd: madera: work around false-positive -Wininitialized warning
commit: 3105933c2cf5e2e1908d31500fff72e28e0d94bf
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2025-09-02 8:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 7:19 Arnd Bergmann
2025-08-07 13:15 ` Richard Fitzgerald
2025-09-02 8:15 ` Lee Jones [this message]
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=175680090336.2185785.11760207261424041452.b4-ty@kernel.org \
--to=lee@kernel.org \
--cc=arnd@arndb.de \
--cc=arnd@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=justinstitt@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=nick.desaulniers+lkml@gmail.com \
--cc=patches@opensource.cirrus.com \
--cc=rf@opensource.cirrus.com \
/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
all inboxes | Powered by JetHome®