Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
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-09-04 260/343] sound/soc/codecs/nau8360.c:826:43: error: incomplete definition of type 'struct snd_soc_dai'
Date: Mon, 07 Sep 2026 22:04:20 +0800	[thread overview]
Message-ID: <202609072135.ZT5K3UDq-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-07 14:04 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=202609072135.ZT5K3UDq-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