From: "Arnd Bergmann" <arnd@arndb.de>
To: "kernel test robot" <lkp@intel.com>,
"Krzysztof Kozlowski" <krzk@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, "Mark Brown" <broonie@kernel.org>,
"Charles Keepax" <ckeepax@opensource.cirrus.com>
Subject: Re: sound/soc/codecs/lochnagar-sc.c:247:34: warning: unused variable 'lochnagar_of_match'
Date: Mon, 10 Oct 2022 11:57:11 +0200 [thread overview]
Message-ID: <8ded6196-009e-4a85-b4f2-bea5d0b49ec4@app.fastmail.com> (raw)
In-Reply-To: <202210101659.LTN2etmy-lkp@intel.com>
On Mon, Oct 10, 2022, at 10:45 AM, kernel test robot wrote:
>
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> master
> head: 493ffd6605b2d3d4dc7008ab927dba319f36671f
> commit: 5b7f4e5de61ba8c44317718936864da29eeba62a ASoC: codecs: allow
> compile testing without MFD drivers
>
>>> sound/soc/codecs/lochnagar-sc.c:247:34: warning: unused variable 'lochnagar_of_match' [-Wunused-const-variable]
> static const struct of_device_id lochnagar_of_match[] = {
The 'of_match_ptr()' macro usage should be removed here, since
the array is defined unconditionally:
--- a/sound/soc/codecs/lochnagar-sc.c
+++ b/sound/soc/codecs/lochnagar-sc.c
@@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(of, lochnagar_of_match);
static struct platform_driver lochnagar_sc_codec_driver = {
.driver = {
.name = "lochnagar-soundcard",
- .of_match_table = of_match_ptr(lochnagar_of_match),
+ .of_match_table = lochnagar_of_match,
},
.probe = lochnagar_sc_probe,
Arnd
next prev parent reply other threads:[~2022-10-10 9:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 8:45 kernel test robot
2022-10-10 9:57 ` Arnd Bergmann [this message]
2022-12-15 13:36 kernel test robot
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=8ded6196-009e-4a85-b4f2-bea5d0b49ec4@app.fastmail.com \
--to=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=kbuild-all@lists.01.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=llvm@lists.linux.dev \
/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®