From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-cleanup-2026-10-27 189/366] sound/soc/mediatek/mt6797/mt6797-mt6351.c:217:35: error: incompatible pointer types passing 'struct device *' to parameter of type 'struct snd_soc_card *'
Date: Tue, 27 Oct 2026 11:59:14 +0100 [thread overview]
Message-ID: <202610271146.J2KYgi8H-lkp@intel.com> (raw)
tree: https://github.com/morimoto/linux sound-cleanup-2026-10-27
head: a6f5f374420e4556475bd5e208cf57c1028d5e59
commit: d9d0900ff9e45b0c27f682db6583bd0e786ed1e8 [189/366] ASoC: mediatek: mt6797-mt6351: use snd_soc_card_register()
config: arm64-randconfig-2000-20261027 (https://download.01.org/0day-ci/archive/20261027/202610271146.J2KYgi8H-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 42d4451d86c175b745d6ea1c4081787994c7259b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261027/202610271146.J2KYgi8H-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610271146.J2KYgi8H-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/mediatek/mt6797/mt6797-mt6351.c:217:35: error: incompatible pointer types passing 'struct device *' to parameter of type 'struct snd_soc_card *' [-Wincompatible-pointer-types]
217 | ret = devm_snd_soc_card_register(&pdev->dev, card_driver);
| ^~~~~~~~~~
include/sound/soc-card.h:101:53: note: passing argument to parameter 'card' here
101 | int devm_snd_soc_card_register(struct snd_soc_card *card, struct snd_soc_card_driver *driver);
| ^
1 error generated.
vim +217 sound/soc/mediatek/mt6797/mt6797-mt6351.c
183
184 static int mt6797_mt6351_dev_probe(struct platform_device *pdev)
185 {
186 struct snd_soc_card_driver *card_driver = &mt6797_mt6351_card_driver;
187 struct device_node *platform_node, *codec_node;
188 struct snd_soc_dai_link *dai_link;
189 int ret, i;
190
191 platform_node = of_parse_phandle(pdev->dev.of_node,
192 "mediatek,platform", 0);
193 if (!platform_node) {
194 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n");
195 return -EINVAL;
196 }
197 for_each_card_driver_prelinks(card_driver, i, dai_link) {
198 if (dai_link->platforms->name)
199 continue;
200 dai_link->platforms->of_node = platform_node;
201 }
202
203 codec_node = of_parse_phandle(pdev->dev.of_node,
204 "mediatek,audio-codec", 0);
205 if (!codec_node) {
206 dev_err(&pdev->dev,
207 "Property 'audio-codec' missing or invalid\n");
208 ret = -EINVAL;
209 goto put_platform_node;
210 }
211 for_each_card_driver_prelinks(card_driver, i, dai_link) {
212 if (dai_link->codecs->name)
213 continue;
214 dai_link->codecs->of_node = codec_node;
215 }
216
> 217 ret = devm_snd_soc_card_register(&pdev->dev, card_driver);
218
219 if (ret)
220 dev_err(&pdev->dev, "%s snd_soc_card_register() fail %d\n",
221 __func__, ret);
222
223 of_node_put(codec_node);
224 put_platform_node:
225 of_node_put(platform_node);
226 return ret;
227 }
228
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-27 11:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202610271146.J2KYgi8H-lkp@intel.com \
--to=lkp@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@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