Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
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-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
Date: Tue, 06 Oct 2026 09:22:49 +0800	[thread overview]
Message-ID: <202610060918.8PUwFcDg-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-10-06  1:23 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=202610060918.8PUwFcDg-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