All of lore.kernel.org
 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 261/343] sound/soc/codecs/nau8360.c:362:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations
Date: Tue, 08 Sep 2026 05:36:47 +0800	[thread overview]
Message-ID: <202609080533.rGIMS07j-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-cleanup-2026-09-04
head:   dfa282dfe99643be782149d948208f3d514ebb99
commit: 2ec5bcc4a0d57a7db5c121ab6e10d602373d1f0e [261/343] ASoC: soc-component: remove snd_soc_component_{set/get}_drvdata()
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260908/202609080533.rGIMS07j-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/20260908/202609080533.rGIMS07j-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/202609080533.rGIMS07j-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/codecs/nau8360.c:362:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     362 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
>> sound/soc/codecs/nau8360.c:362:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     362 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c:409:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     409 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360.c:409:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     409 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c:452:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     452 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360.c:452:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     452 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c:688:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     688 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^
   sound/soc/codecs/nau8360.c:688:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     688 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360.c:712:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     712 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^
   sound/soc/codecs/nau8360.c:712:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     712 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   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:827:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     827 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^
   sound/soc/codecs/nau8360.c:827:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     827 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   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:856:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     856 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^
   sound/soc/codecs/nau8360.c:856:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     856 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   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:872:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     872 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                                   ^
   sound/soc/codecs/nau8360.c:872:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     872 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(component);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   20 errors generated.
--
>> sound/soc/codecs/nau8360-dsp.c:117:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     117 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
>> sound/soc/codecs/nau8360-dsp.c:117:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     117 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:266:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     266 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:266:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     266 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:296:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     296 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:296:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     296 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:336:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     336 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:336:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     336 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:534:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     534 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:534:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     534 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:562:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     562 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:562:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     562 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:601:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     601 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:601:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     601 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/codecs/nau8360-dsp.c:615:28: error: call to undeclared function 'snd_soc_component_get_drvdata'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     615 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                                   ^
   sound/soc/codecs/nau8360-dsp.c:615:18: error: incompatible integer to pointer conversion initializing 'struct nau8360 *' with an expression of type 'int' [-Wint-conversion]
     615 |         struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
         |                         ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   16 errors generated.


vim +/snd_soc_component_get_drvdata +362 sound/soc/codecs/nau8360.c

be88847a8bb1a1 Neo Chang 2026-08-25  357  
be88847a8bb1a1 Neo Chang 2026-08-25  358  static int nau8360_anc_put(struct snd_kcontrol *kcontrol,
be88847a8bb1a1 Neo Chang 2026-08-25  359  	struct snd_ctl_elem_value *ucontrol)
be88847a8bb1a1 Neo Chang 2026-08-25  360  {
be88847a8bb1a1 Neo Chang 2026-08-25  361  	struct snd_soc_component *cp = snd_kcontrol_chip(kcontrol);
be88847a8bb1a1 Neo Chang 2026-08-25 @362  	struct nau8360 *nau8360 = snd_soc_component_get_drvdata(cp);
be88847a8bb1a1 Neo Chang 2026-08-25  363  	int ret, value = NAU8360_PEQ_BAND_8;
be88847a8bb1a1 Neo Chang 2026-08-25  364  
be88847a8bb1a1 Neo Chang 2026-08-25  365  	mutex_lock(&nau8360->lock);
be88847a8bb1a1 Neo Chang 2026-08-25  366  
be88847a8bb1a1 Neo Chang 2026-08-25  367  	ret = snd_soc_put_volsw(kcontrol, ucontrol);
be88847a8bb1a1 Neo Chang 2026-08-25  368  	/* update anc flag if return value 1 and register value changed */
be88847a8bb1a1 Neo Chang 2026-08-25  369  	if (ret != 1)
be88847a8bb1a1 Neo Chang 2026-08-25  370  		goto unlock;
be88847a8bb1a1 Neo Chang 2026-08-25  371  
be88847a8bb1a1 Neo Chang 2026-08-25  372  	nau8360->anc_enable = ucontrol->value.integer.value[0];
be88847a8bb1a1 Neo Chang 2026-08-25  373  	if (nau8360_dsp_active(cp))
be88847a8bb1a1 Neo Chang 2026-08-25  374  		value = nau8360->anc_enable ? NAU8360_PEQ_BAND_15 : NAU8360_PEQ_BAND_12;
be88847a8bb1a1 Neo Chang 2026-08-25  375  	regmap_update_bits(nau8360->regmap, NAU8360_R9D_PEQ_CTL, NAU8360_PEQ_BAND_MASK,
be88847a8bb1a1 Neo Chang 2026-08-25  376  		value << NAU8360_PEQ_BAND_SFT);
be88847a8bb1a1 Neo Chang 2026-08-25  377  
be88847a8bb1a1 Neo Chang 2026-08-25  378  unlock:
be88847a8bb1a1 Neo Chang 2026-08-25  379  	mutex_unlock(&nau8360->lock);
be88847a8bb1a1 Neo Chang 2026-08-25  380  
be88847a8bb1a1 Neo Chang 2026-08-25  381  	return ret;
be88847a8bb1a1 Neo Chang 2026-08-25  382  }
be88847a8bb1a1 Neo Chang 2026-08-25  383  

:::::: The code at line 362 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 21:37 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=202609080533.rGIMS07j-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 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.