[morimoto:sound-cleanup-2026-07-16 311/311] sound/soc/soc-component.c:1889:2: error: call to undeclared function 'snd_soc_unregister_component_by_driver'; ISO C99 and later do not support implicit function declarations

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all,dev.linux.lists.llvm
Message-ID <[email protected]>
tree:   https://github.com/morimoto/linux sound-cleanup-2026-07-16
head:   e51d2e02d8d4c974132f00eec9d2215a476084f0
commit: e5f6e49182359560489330edda8ea8db0fe3e07b [311/311] ASoC: soc-component: remove compatible definition
config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260717/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 5c0dfced1adc55429e32b1db08570abd3a219d85)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260717/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> sound/soc/soc-component.c:1889:2: error: call to undeclared function 'snd_soc_unregister_component_by_driver'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1889 |         snd_soc_unregister_component_by_driver(dev, *cmpnt_drv);
         |         ^
   1 error generated.


vim +/snd_soc_unregister_component_by_driver +1889 sound/soc/soc-component.c

f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1884  
f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1885  static void devm_component_release(struct device *dev, void *res)
f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1886  {
f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1887  	const struct snd_soc_component_driver **cmpnt_drv = res;
f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1888  
f547a858c9abcb1 Kuninori Morimoto 2026-07-08 @1889  	snd_soc_unregister_component_by_driver(dev, *cmpnt_drv);
f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1890  }
f547a858c9abcb1 Kuninori Morimoto 2026-07-08  1891  

:::::: The code at line 1889 was first introduced by commit
:::::: f547a858c9abcb132c18ff0f09700d925b069c21 ASoC: soc-component: move devm_snd_soc_component_register()

:::::: TO: Kuninori Morimoto <[email protected]>
:::::: CC: Kuninori Morimoto <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.