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-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
Date: Mon, 10 Mar 2025 13:51:13 +0800 [thread overview]
Message-ID: <202503101300.LhjHiEqb-lkp@intel.com> (raw)
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
reply other threads:[~2025-03-10 5:51 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=202503101300.LhjHiEqb-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