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-06-26 328/328] sound/soc/fsl/mpc5200_dma.c:299:35: error: incomplete definition of type 'struct snd_soc_card'
Date: Fri, 26 Jun 2026 23:13:40 +0800 [thread overview]
Message-ID: <202606262303.4pgfRmts-lkp@intel.com> (raw)
tree: https://github.com/morimoto/linux sound-cleanup-2026-06-26
head: 3b1a6af55c000fdba23910aeb597cb608b44bed6
commit: 3b1a6af55c000fdba23910aeb597cb608b44bed6 [328/328] SoC: move struct snd_soc_card/snd_soc_card_driver to soc-card.[hc]
config: powerpc-randconfig-001-20260626 (https://download.01.org/0day-ci/archive/20260626/202606262303.4pgfRmts-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 6cc609bb250b21b47fc7d394b4019101e9983597)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260626/202606262303.4pgfRmts-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/202606262303.4pgfRmts-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/fsl/mpc5200_dma.c:299:35: error: incomplete definition of type 'struct snd_soc_card'
299 | struct snd_card *card = rtd->card->snd_card;
| ~~~~~~~~~^
include/sound/soc.h:417:8: note: forward declaration of 'struct snd_soc_card'
417 | struct snd_soc_card;
| ^
sound/soc/fsl/mpc5200_dma.c:305:19: error: incomplete definition of type 'struct snd_soc_component'
305 | dev_dbg(component->dev, "psc_dma_new(card=%p, dai=%p, pcm=%p)\n",
| ~~~~~~~~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
sound/soc/fsl/mpc5200_dma.c:317:3: error: field designator 'name' does not refer to any field in type 'const struct snd_soc_component_driver'
317 | .name = DRV_NAME,
| ~^~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
vim +299 sound/soc/fsl/mpc5200_dma.c
89dd08425273773 Jon Smirl 2009-05-23 295
6d1048bc115259b Kuninori Morimoto 2019-10-02 296 static int psc_dma_new(struct snd_soc_component *component,
6d1048bc115259b Kuninori Morimoto 2019-10-02 297 struct snd_soc_pcm_runtime *rtd)
89dd08425273773 Jon Smirl 2009-05-23 298 {
552d1ef6b5a98d7 Liam Girdwood 2011-06-07 @299 struct snd_card *card = rtd->card->snd_card;
14ec63f678e8bea Kuninori Morimoto 2023-09-11 300 struct snd_soc_dai *dai = snd_soc_rtd_to_cpu(rtd, 0);
552d1ef6b5a98d7 Liam Girdwood 2011-06-07 301 struct snd_pcm *pcm = rtd->pcm;
dbcc34756234596 Jon Smirl 2009-05-26 302 size_t size = psc_dma_hardware.buffer_bytes_max;
c9bd5e690a439df Russell King 2013-06-27 303 int rc;
89dd08425273773 Jon Smirl 2009-05-23 304
60bceb8029e26c4 Kuninori Morimoto 2018-01-29 305 dev_dbg(component->dev, "psc_dma_new(card=%p, dai=%p, pcm=%p)\n",
89dd08425273773 Jon Smirl 2009-05-23 306 card, dai, pcm);
89dd08425273773 Jon Smirl 2009-05-23 307
c9bd5e690a439df Russell King 2013-06-27 308 rc = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32));
c9bd5e690a439df Russell King 2013-06-27 309 if (rc)
c9bd5e690a439df Russell King 2013-06-27 310 return rc;
89dd08425273773 Jon Smirl 2009-05-23 311
3610a6d1dbd19b3 Takashi Iwai 2021-08-02 312 return snd_pcm_set_fixed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev,
3610a6d1dbd19b3 Takashi Iwai 2021-08-02 313 size);
89dd08425273773 Jon Smirl 2009-05-23 314 }
89dd08425273773 Jon Smirl 2009-05-23 315
:::::: The code at line 299 was first introduced by commit
:::::: 552d1ef6b5a98d7b95959d5b139071e3c90cebf1 ASoC: core - Optimise and refactor pcm_new() to pass only rtd
:::::: TO: Liam Girdwood <lrg@ti.com>
:::::: CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-26 15:13 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=202606262303.4pgfRmts-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