* [morimoto:sound-cleanup-2026-09-04 260/343] sound/soc/codecs/nau8360.c:826:43: error: incomplete definition of type 'struct snd_soc_dai'
@ 2026-09-07 14:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-07 14:04 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2026-09-04
head: dfa282dfe99643be782149d948208f3d514ebb99
commit: 4f2f1933fcf300aec135d095ab4fc78c3ed70962 [260/343] ASoC: soc-dai: move struct snd_soc_dai to soc-dai.c
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260907/202609072135.ZT5K3UDq-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 419c22c908c97dac45d161ce56fa01b99ec7debf)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260907/202609072135.ZT5K3UDq-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/202609072135.ZT5K3UDq-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/codecs/nau8360.c:826:43: error: incomplete definition of type 'struct snd_soc_dai'
826 | struct snd_soc_component *component = dai->component;
| ~~~^
include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
419 | struct snd_soc_dai;
| ^
sound/soc/codecs/nau8360.c:855:43: error: incomplete definition of type 'struct snd_soc_dai'
855 | struct snd_soc_component *component = dai->component;
| ~~~^
include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
419 | struct snd_soc_dai;
| ^
sound/soc/codecs/nau8360.c:871:43: error: incomplete definition of type 'struct snd_soc_dai'
871 | struct snd_soc_component *component = dai->component;
| ~~~^
include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
419 | struct snd_soc_dai;
| ^
sound/soc/codecs/nau8360.c:931:43: error: incomplete definition of type 'struct snd_soc_dai'
931 | struct snd_soc_component *component = dai->component;
| ~~~^
include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
419 | struct snd_soc_dai;
| ^
sound/soc/codecs/nau8360.c:1172:36: error: incomplete definition of type 'struct snd_soc_dai'
1172 | struct snd_soc_component *cp = dai->component;
| ~~~^
include/sound/soc.h:419:8: note: forward declaration of 'struct snd_soc_dai'
419 | struct snd_soc_dai;
| ^
5 errors generated.
vim +826 sound/soc/codecs/nau8360.c
be88847a8bb1a1 Neo Chang 2026-08-25 823
be88847a8bb1a1 Neo Chang 2026-08-25 824 static int nau8360_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
be88847a8bb1a1 Neo Chang 2026-08-25 825 {
be88847a8bb1a1 Neo Chang 2026-08-25 @826 struct snd_soc_component *component = dai->component;
be88847a8bb1a1 Neo Chang 2026-08-25 827 struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
be88847a8bb1a1 Neo Chang 2026-08-25 828 unsigned int i2s_mask = NAU8360_FRAME_START_MASK | NAU8360_RX_OFFSET_MASK;
be88847a8bb1a1 Neo Chang 2026-08-25 829 unsigned int i2s_fmt = NAU8360_FRAME_START_H2L | NAU8360_RX_OFFSET_I2S;
be88847a8bb1a1 Neo Chang 2026-08-25 830 int val = 0;
be88847a8bb1a1 Neo Chang 2026-08-25 831
be88847a8bb1a1 Neo Chang 2026-08-25 832 flush_work(&nau8360->load_fw_work);
be88847a8bb1a1 Neo Chang 2026-08-25 833
be88847a8bb1a1 Neo Chang 2026-08-25 834 if (nau8360_dsp_active(component) && !nau8360->load_fw_done) {
be88847a8bb1a1 Neo Chang 2026-08-25 835 dev_warn(nau8360->dev, "DSP firmware is not ready yet!");
be88847a8bb1a1 Neo Chang 2026-08-25 836 return -EBUSY;
be88847a8bb1a1 Neo Chang 2026-08-25 837 }
be88847a8bb1a1 Neo Chang 2026-08-25 838
be88847a8bb1a1 Neo Chang 2026-08-25 839 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
be88847a8bb1a1 Neo Chang 2026-08-25 840 regmap_read(nau8360->regmap, NAU8360_R0B_I2S_PCM_CTRL1, &val);
be88847a8bb1a1 Neo Chang 2026-08-25 841 if ((val & i2s_mask) == i2s_fmt)
be88847a8bb1a1 Neo Chang 2026-08-25 842 regmap_update_bits(nau8360->regmap, NAU8360_R0B_I2S_PCM_CTRL1,
be88847a8bb1a1 Neo Chang 2026-08-25 843 NAU8360_EN_TDM_RX, NAU8360_EN_TDM_RX);
be88847a8bb1a1 Neo Chang 2026-08-25 844
be88847a8bb1a1 Neo Chang 2026-08-25 845 if (nau8360_dsp_active(component))
be88847a8bb1a1 Neo Chang 2026-08-25 846 snd_soc_dapm_enable_pin(nau8360->dapm, "Sense");
be88847a8bb1a1 Neo Chang 2026-08-25 847 }
be88847a8bb1a1 Neo Chang 2026-08-25 848
be88847a8bb1a1 Neo Chang 2026-08-25 849 return 0;
be88847a8bb1a1 Neo Chang 2026-08-25 850 }
be88847a8bb1a1 Neo Chang 2026-08-25 851
:::::: The code at line 826 was first introduced by commit
:::::: be88847a8bb1a14194cf50116f8909d127861318 ASoC: codecs: nau8360: Add support for NAU83G60 amplifier
:::::: TO: Neo Chang <YLCHANG2@nuvoton.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-09-07 14:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 14:04 [morimoto:sound-cleanup-2026-09-04 260/343] sound/soc/codecs/nau8360.c:826:43: error: incomplete definition of type 'struct snd_soc_dai' 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