* [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
@ 2026-09-07 21:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-07 21:36 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: 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-07 21:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-07 21:36 [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 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