* [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 *'
@ 2026-10-27 10:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-27 10:59 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-27 11:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 10:59 [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 *' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox