* [morimoto:sound-cleanup-2025-03-07 17/40] sound/soc/soc-pcm.c:1635:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations
@ 2025-03-10 5:51 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-10 5:51 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
Hi Kuninori,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://github.com/morimoto/linux sound-cleanup-2025-03-07
head: 609577579ecf4de9913d0d83a96d240bd935a4a1
commit: f6c0618b06d3285bd3ddd254ce62c5eb92c6e4f1 [17/40] ASoC: soc-pcm: tidyup function name to snd_soc_dpcm_be_can_xxx()
config: x86_64-buildonly-randconfig-004-20250310 (https://download.01.org/0day-ci/archive/20250310/202503101300.LhjHiEqb-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250310/202503101300.LhjHiEqb-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/202503101300.LhjHiEqb-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/soc-pcm.c:1635:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1635 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:1685:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1685 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:2010:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2010 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:2076:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2076 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:2121:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2121 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:2191:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2191 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:2468:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2468 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
sound/soc/soc-pcm.c:2626:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2626 | if (!snd_soc_dpcm_can_be_update(fe, be, stream))
| ^
8 errors generated.
vim +/snd_soc_dpcm_can_be_update +1635 sound/soc/soc-pcm.c
1619
1620 void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream,
1621 int do_hw_free, struct snd_soc_dpcm *last)
1622 {
1623 struct snd_soc_dpcm *dpcm;
1624
1625 /* disable any enabled and non active backends */
1626 for_each_dpcm_be(fe, stream, dpcm) {
1627 struct snd_soc_pcm_runtime *be = dpcm->be;
1628 struct snd_pcm_substream *be_substream =
1629 snd_soc_dpcm_get_substream(be, stream);
1630
1631 if (dpcm == last)
1632 return;
1633
1634 /* is this op for this BE ? */
> 1635 if (!snd_soc_dpcm_can_be_update(fe, be, stream))
1636 continue;
1637
1638 if (be->dpcm[stream].users == 0) {
1639 dev_err(be->dev, "ASoC: no users %s at close - state %d\n",
1640 snd_pcm_direction_name(stream),
1641 be->dpcm[stream].state);
1642 continue;
1643 }
1644
1645 if (--be->dpcm[stream].users != 0)
1646 continue;
1647
1648 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) {
1649 if (!do_hw_free)
1650 continue;
1651
1652 if (be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE) {
1653 __soc_pcm_hw_free(be, be_substream);
1654 be->dpcm[stream].state = SND_SOC_DPCM_STATE_HW_FREE;
1655 }
1656 }
1657
1658 __soc_pcm_close(be, be_substream);
1659 be_substream->runtime = NULL;
1660 be->dpcm[stream].state = SND_SOC_DPCM_STATE_CLOSE;
1661 }
1662 }
1663
--
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:[~2025-03-10 5:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10 5:51 [morimoto:sound-cleanup-2025-03-07 17/40] sound/soc/soc-pcm.c:1635:8: error: call to undeclared function 'snd_soc_dpcm_can_be_update'; 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