* [morimoto:sound-cleanup-2026-09-04 263/343] sound/soc/codecs/nau8360-dsp.c:231:13: error: incomplete definition of type 'struct snd_soc_component'
@ 2026-09-08 1:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-08 1:08 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: 39822a6ef2f5c6b15b01c08c9a6c70b57d7134fd [263/343] ASoC: soc-component: capsuling Component
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260908/202609080804.DHiRTu73-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/202609080804.DHiRTu73-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/202609080804.DHiRTu73-lkp@intel.com/
All errors (new ones prefixed by >>):
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:231:13: error: incomplete definition of type 'struct snd_soc_component'
231 | dev_err(cp->dev, "message error (CMD_ID 0x%x, LEN 0x%x) !!!",
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
sound/soc/codecs/nau8360-dsp.c:265:25: error: incomplete definition of type 'struct snd_soc_component'
265 | struct device *dev = cp->dev;
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
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:297:25: error: incomplete definition of type 'struct snd_soc_component'
297 | struct device *dev = cp->dev;
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
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:337:25: error: incomplete definition of type 'struct snd_soc_component'
337 | struct device *dev = cp->dev;
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
sound/soc/codecs/nau8360-dsp.c:446:14: error: incomplete definition of type 'struct snd_soc_component'
446 | dev_err(cp->dev, "DSP %x fail (%d)", nau8360_dsp_addr[i], ret);
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
sound/soc/codecs/nau8360-dsp.c:515:25: error: incomplete definition of type 'struct snd_soc_component'
515 | struct device *dev = cp->dev;
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
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:572:13: error: incomplete definition of type 'struct snd_soc_component'
572 | dev_err(cp->dev, "DSP %x is not ready", dsp_addr);
| ~~^
include/sound/soc.h:422:8: note: forward declaration of 'struct snd_soc_component'
422 | struct snd_soc_component;
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +231 sound/soc/codecs/nau8360-dsp.c
be88847a8bb1a1 Neo Chang 2026-08-25 197
be88847a8bb1a1 Neo Chang 2026-08-25 198 static int nau8360_message_to_dsp(struct snd_soc_component *cp,
be88847a8bb1a1 Neo Chang 2026-08-25 199 const struct nau8360_cmd_info *cmd_info, int frag_len, int param_offset,
be88847a8bb1a1 Neo Chang 2026-08-25 200 int param_size, void *param_data, unsigned short dsp_addr)
be88847a8bb1a1 Neo Chang 2026-08-25 201 {
be88847a8bb1a1 Neo Chang 2026-08-25 202 unsigned int payload;
be88847a8bb1a1 Neo Chang 2026-08-25 203 int ret, padding = 0, frag_cnt = 0;
be88847a8bb1a1 Neo Chang 2026-08-25 204
be88847a8bb1a1 Neo Chang 2026-08-25 205 ret = nau8360_dsp_idle(cp, dsp_addr);
be88847a8bb1a1 Neo Chang 2026-08-25 206 if (ret)
be88847a8bb1a1 Neo Chang 2026-08-25 207 return ret;
be88847a8bb1a1 Neo Chang 2026-08-25 208
be88847a8bb1a1 Neo Chang 2026-08-25 209 /* sending preamble fragment */
be88847a8bb1a1 Neo Chang 2026-08-25 210 payload = nau8360_pack_preamble(cmd_info->cmd_id, frag_len);
be88847a8bb1a1 Neo Chang 2026-08-25 211 snd_soc_component_write(cp, dsp_addr, payload);
be88847a8bb1a1 Neo Chang 2026-08-25 212
be88847a8bb1a1 Neo Chang 2026-08-25 213 if (!cmd_info->msg_param)
be88847a8bb1a1 Neo Chang 2026-08-25 214 return ret;
be88847a8bb1a1 Neo Chang 2026-08-25 215
be88847a8bb1a1 Neo Chang 2026-08-25 216 /* sending payload + padding */
be88847a8bb1a1 Neo Chang 2026-08-25 217 payload = nau8360_pack_param(param_offset, param_size);
be88847a8bb1a1 Neo Chang 2026-08-25 218 snd_soc_component_write(cp, dsp_addr, payload);
be88847a8bb1a1 Neo Chang 2026-08-25 219 frag_cnt++;
be88847a8bb1a1 Neo Chang 2026-08-25 220
be88847a8bb1a1 Neo Chang 2026-08-25 221 if (cmd_info->setup_data)
be88847a8bb1a1 Neo Chang 2026-08-25 222 nau8360_send_data_payload(cp, dsp_addr, param_data, param_size,
be88847a8bb1a1 Neo Chang 2026-08-25 223 &frag_cnt, &padding);
be88847a8bb1a1 Neo Chang 2026-08-25 224
be88847a8bb1a1 Neo Chang 2026-08-25 225 /* sending trailing fragment */
be88847a8bb1a1 Neo Chang 2026-08-25 226 frag_cnt++;
be88847a8bb1a1 Neo Chang 2026-08-25 227 payload = nau8360_pack_trailing(frag_cnt, padding);
be88847a8bb1a1 Neo Chang 2026-08-25 228 snd_soc_component_write(cp, dsp_addr, payload);
be88847a8bb1a1 Neo Chang 2026-08-25 229
be88847a8bb1a1 Neo Chang 2026-08-25 230 if (frag_cnt != frag_len) {
be88847a8bb1a1 Neo Chang 2026-08-25 @231 dev_err(cp->dev, "message error (CMD_ID 0x%x, LEN 0x%x) !!!",
be88847a8bb1a1 Neo Chang 2026-08-25 232 cmd_info->cmd_id, frag_cnt);
be88847a8bb1a1 Neo Chang 2026-08-25 233 return -EPROTO;
be88847a8bb1a1 Neo Chang 2026-08-25 234 }
be88847a8bb1a1 Neo Chang 2026-08-25 235
be88847a8bb1a1 Neo Chang 2026-08-25 236 return 0;
be88847a8bb1a1 Neo Chang 2026-08-25 237 }
be88847a8bb1a1 Neo Chang 2026-08-25 238
:::::: The code at line 231 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-08 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 1:08 [morimoto:sound-cleanup-2026-09-04 263/343] sound/soc/codecs/nau8360-dsp.c:231:13: error: incomplete definition of type 'struct snd_soc_component' 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