* [morimoto:sound-cleanup-2026-09-30-3 322/322] sound/soc/mediatek/mt8192/mt8192-dai-adda.c:462:29: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations
@ 2026-10-06 1:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-06 1:22 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2026-09-30-3
head: 8ef89ccab720b2e433fdb62596f1c54d5e4ed184
commit: 5f85279ecbf1dd06cb7458eb4e9da621e969302f [322/322] ASoC: soc-component: remove snd_soc_component_{set/get}_drvdata()
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20261006/202610060918.8PUwFcDg-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 80cd965b6323b208519f8ab1d5ee86e4ea9862f4)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261006/202610060918.8PUwFcDg-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/202610060918.8PUwFcDg-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/mediatek/mt8192/mt8192-dai-adda.c:462:29: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
462 | struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt);
| ^
>> sound/soc/mediatek/mt8192/mt8192-dai-adda.c:462:23: error: incompatible integer to pointer conversion initializing 'struct mtk_base_afe *' with an expression of type 'int' [-Wint-conversion]
462 | struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
vim +/snd_soc_component_get_drvdata +462 sound/soc/mediatek/mt8192/mt8192-dai-adda.c
607ac48595640d Jiaxin Yu 2020-11-03 456
607ac48595640d Jiaxin Yu 2020-11-03 457 static int mtk_adda_dl_event(struct snd_soc_dapm_widget *w,
607ac48595640d Jiaxin Yu 2020-11-03 458 struct snd_kcontrol *kcontrol,
607ac48595640d Jiaxin Yu 2020-11-03 459 int event)
607ac48595640d Jiaxin Yu 2020-11-03 460 {
607ac48595640d Jiaxin Yu 2020-11-03 461 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm);
607ac48595640d Jiaxin Yu 2020-11-03 @462 struct mtk_base_afe *afe = snd_soc_component_get_drvdata(cmpnt);
eed9414a1b075e bui duc phuc 2026-09-18 463 int ret;
607ac48595640d Jiaxin Yu 2020-11-03 464
607ac48595640d Jiaxin Yu 2020-11-03 465 switch (event) {
607ac48595640d Jiaxin Yu 2020-11-03 466 case SND_SOC_DAPM_PRE_PMU:
eed9414a1b075e bui duc phuc 2026-09-18 467 ret = mt8192_afe_gpio_request(afe->dev, true, MT8192_DAI_ADDA, 0);
eed9414a1b075e bui duc phuc 2026-09-18 468 if (ret)
eed9414a1b075e bui duc phuc 2026-09-18 469 return ret;
607ac48595640d Jiaxin Yu 2020-11-03 470 break;
607ac48595640d Jiaxin Yu 2020-11-03 471 case SND_SOC_DAPM_POST_PMD:
607ac48595640d Jiaxin Yu 2020-11-03 472 /* should delayed 1/fs(smallest is 8k) = 125us before afe off */
607ac48595640d Jiaxin Yu 2020-11-03 473 usleep_range(125, 135);
eed9414a1b075e bui duc phuc 2026-09-18 474 ret = mt8192_afe_gpio_request(afe->dev, false, MT8192_DAI_ADDA, 0);
eed9414a1b075e bui duc phuc 2026-09-18 475 if (ret)
eed9414a1b075e bui duc phuc 2026-09-18 476 return ret;
607ac48595640d Jiaxin Yu 2020-11-03 477 break;
607ac48595640d Jiaxin Yu 2020-11-03 478 default:
607ac48595640d Jiaxin Yu 2020-11-03 479 break;
607ac48595640d Jiaxin Yu 2020-11-03 480 }
607ac48595640d Jiaxin Yu 2020-11-03 481
607ac48595640d Jiaxin Yu 2020-11-03 482 return 0;
607ac48595640d Jiaxin Yu 2020-11-03 483 }
607ac48595640d Jiaxin Yu 2020-11-03 484
:::::: The code at line 462 was first introduced by commit
:::::: 607ac48595640d549a769f0dde0732e69c3a6c03 ASoC: mediatek: mt8192: support adda in platform driver
:::::: TO: Jiaxin Yu <jiaxin.yu@mediatek.com>
:::::: CC: Mark Brown <broonie@kernel.org>
--
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-06 1:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 1:22 [morimoto:sound-cleanup-2026-09-30-3 322/322] sound/soc/mediatek/mt8192/mt8192-dai-adda.c:462:29: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations 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