All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto:sound-cleanup-2026-10-28-2 244/344] sound/soc/fsl/fsl_qmc_audio.c:60:35: error: incomplete definition of type 'struct snd_soc_card'
@ 2026-10-28 19:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-28 19:21 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-cleanup-2026-10-28-2
head:   3274ffa4355111331c471a7987c5f2af43fac128
commit: 009214cc279a0efdc46fca31937145c681105755 [244/344] ASoC: move struct snd_soc_card/snd_soc_card_driver to soc-card.[hc]
config: powerpc-randconfig-r2310-20261028 (https://download.01.org/0day-ci/archive/20261028/202610282017.Fu8yrydb-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 42d4451d86c175b745d6ea1c4081787994c7259b)
sparse: v0.6.5-rc1-1-gc4640450
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261028/202610282017.Fu8yrydb-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/202610282017.Fu8yrydb-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/fsl/fsl_qmc_audio.c:60:35: error: incomplete definition of type 'struct snd_soc_card'
      60 |         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/fsl_qmc_audio.c:206:20: error: incomplete definition of type 'struct snd_soc_component'
     206 |                 dev_err(component->dev, "qmc_dai is not set\n");
         |                         ~~~~~~~~~^
   include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
     422 | struct snd_soc_component;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:354:12: error: incomplete definition of type 'struct snd_soc_dai'
     354 |         return dai->driver - qmc_audio->dai_drivers;
         |                ~~~^
   include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
     419 | struct snd_soc_dai;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:560:14: error: incomplete definition of type 'struct snd_soc_dai'
     560 |                 dev_err(dai->dev, "Invalid dai\n");
         |                         ~~~^
   include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
     419 | struct snd_soc_dai;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:583:14: error: incomplete definition of type 'struct snd_soc_dai'
     583 |                 dev_err(dai->dev, "Invalid dai\n");
         |                         ~~~^
   include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
     419 | struct snd_soc_dai;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:596:14: error: incomplete definition of type 'struct snd_soc_dai'
     596 |                 dev_err(dai->dev, "Not enough qmc_chans. Need %u, avail %u\n",
         |                         ~~~^
   include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
     419 | struct snd_soc_dai;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:607:16: error: incomplete definition of type 'struct snd_soc_dai'
     607 |                                 dev_err(dai->dev, "qmc_chans[%u], set param failed %d\n",
         |                                         ~~~^
   include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
     419 | struct snd_soc_dai;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:632:14: error: incomplete definition of type 'struct snd_soc_dai'
     632 |                 dev_err(dai->dev, "Invalid dai\n");
         |                         ~~~^
   include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
     419 | struct snd_soc_dai;
         |        ^
   sound/soc/fsl/fsl_qmc_audio.c:949:8: error: call to undeclared function 'devm_snd_soc_component_register'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     949 |         ret = devm_snd_soc_component_register(qmc_audio->dev,
         |               ^
   sound/soc/fsl/fsl_qmc_audio.c:949:8: note: did you mean 'snd_soc_component_register'?
   include/sound/soc-component.h:230:5: note: 'snd_soc_component_register' declared here
     230 | int snd_soc_component_register(struct snd_soc_component *component,
         |     ^
   9 errors generated.


vim +60 sound/soc/fsl/fsl_qmc_audio.c

075c7125b11c72 Herve Codina      2023-02-17  56  
fe8112d6d2a62e Kuninori Morimoto 2026-03-16  57  static int qmc_audio_pcm_new(struct snd_soc_component *component,
075c7125b11c72 Herve Codina      2023-02-17  58  			     struct snd_soc_pcm_runtime *rtd)
075c7125b11c72 Herve Codina      2023-02-17  59  {
075c7125b11c72 Herve Codina      2023-02-17 @60  	struct snd_card *card = rtd->card->snd_card;
075c7125b11c72 Herve Codina      2023-02-17  61  	int ret;
075c7125b11c72 Herve Codina      2023-02-17  62  
075c7125b11c72 Herve Codina      2023-02-17  63  	ret = dma_coerce_mask_and_coherent(card->dev, DMA_BIT_MASK(32));
075c7125b11c72 Herve Codina      2023-02-17  64  	if (ret)
075c7125b11c72 Herve Codina      2023-02-17  65  		return ret;
075c7125b11c72 Herve Codina      2023-02-17  66  
075c7125b11c72 Herve Codina      2023-02-17  67  	snd_pcm_set_managed_buffer_all(rtd->pcm, SNDRV_DMA_TYPE_DEV, card->dev,
075c7125b11c72 Herve Codina      2023-02-17  68  				       64 * 1024, 64 * 1024);
075c7125b11c72 Herve Codina      2023-02-17  69  	return 0;
075c7125b11c72 Herve Codina      2023-02-17  70  }
075c7125b11c72 Herve Codina      2023-02-17  71  

:::::: The code at line 60 was first introduced by commit
:::::: 075c7125b11c72e7933401d73000d6d151196072 ASoC: fsl: Add support for QMC audio

:::::: TO: Herve Codina <herve.codina@bootlin.com>
:::::: CC: Mark Brown <broonie@kernel.org>

--
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:[~2026-10-28 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28 19:21 [morimoto:sound-cleanup-2026-10-28-2 244/344] sound/soc/fsl/fsl_qmc_audio.c:60:35: error: incomplete definition of type 'struct snd_soc_card' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.