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-06-16 326/326] sound/soc/codecs/cs35l56-test.c:558:21: error: incompatible integer to pointer conversion assigning to 'struct snd_soc_component *' from 'int'
Date: Wed, 17 Jun 2026 22:07:32 +0800	[thread overview]
Message-ID: <202606172147.CPu1r61e-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-cleanup-2026-06-16
head:   5ce50ac7d0a59c6fb15e1baa7e6824ac096fe092
commit: 4bbdf4f7c937878b634b01d362515e2a79053b52 [326/326] dai
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20260617/202606172147.CPu1r61e-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project e19d1f51a2c80b63cd8ca95bcc757b7077112808)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/202606172147.CPu1r61e-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/202606172147.CPu1r61e-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/codecs/cs35l56-test.c:558:23: error: call to undeclared function 'snd_soc_component_alloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     558 |         cs35l56->component = snd_soc_component_alloc(cs35l56->base.dev, &component_driver,
         |                              ^
   sound/soc/codecs/cs35l56-test.c:558:23: note: did you mean 'snd_soc_component_close'?
   include/sound/soc-component.h:410:5: note: 'snd_soc_component_close' declared here
     410 | int snd_soc_component_close(struct snd_soc_component *component,
         |     ^
>> sound/soc/codecs/cs35l56-test.c:558:21: error: incompatible integer to pointer conversion assigning to 'struct snd_soc_component *' from 'int' [-Wint-conversion]
     558 |         cs35l56->component = snd_soc_component_alloc(cs35l56->base.dev, &component_driver,
         |                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     559 |                                                      NULL, NULL, NULL, NULL);
         |                                                      ~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.
--
>> sound/soc/codecs/wm8750.c:638:4: error: call to undeclared function 'snd_soc_component_regmap_regcache_sync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     638 |                         snd_soc_component_regmap_regcache_sync(component);
         |                         ^
   sound/soc/codecs/wm8750.c:638:4: note: did you mean 'snd_soc_component_regcache_sync'?
   include/sound/soc-component.h:497:19: note: 'snd_soc_component_regcache_sync' declared here
     497 | static inline int snd_soc_component_regcache_sync(struct snd_soc_component *component)
         |                   ^
   1 error generated.
--
>> sound/soc/codecs/wm8971.c:581:4: error: call to undeclared function 'snd_soc_component_regmap_regcache_sync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     581 |                         snd_soc_component_regmap_regcache_sync(component);
         |                         ^
   sound/soc/codecs/wm8971.c:581:4: note: did you mean 'snd_soc_component_regcache_sync'?
   include/sound/soc-component.h:497:19: note: 'snd_soc_component_regcache_sync' declared here
     497 | static inline int snd_soc_component_regcache_sync(struct snd_soc_component *component)
         |                   ^
   1 error generated.
--
>> sound/soc/codecs/wm9712.c:628:3: error: call to undeclared function 'snd_soc_component_regmap_regcache_sync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     628 |                 snd_soc_component_regmap_regcache_sync(component);
         |                 ^
   sound/soc/codecs/wm9712.c:628:3: note: did you mean 'snd_soc_component_regcache_sync'?
   include/sound/soc-component.h:497:19: note: 'snd_soc_component_regcache_sync' declared here
     497 | static inline int snd_soc_component_regcache_sync(struct snd_soc_component *component)
         |                   ^
   1 error generated.
--
>> sound/soc/codecs/wm9713.c:1212:3: error: call to undeclared function 'snd_soc_component_regmap_regcache_mark_dirty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1212 |                 snd_soc_component_regmap_regcache_mark_dirty(component);
         |                 ^
   sound/soc/codecs/wm9713.c:1212:3: note: did you mean 'snd_soc_component_regcache_mark_dirty'?
   include/sound/soc-component.h:527:20: note: 'snd_soc_component_regcache_mark_dirty' declared here
     527 | static inline void snd_soc_component_regcache_mark_dirty(struct snd_soc_component *component)
         |                    ^
>> sound/soc/codecs/wm9713.c:1213:3: error: call to undeclared function 'snd_soc_component_regmap_regcache_sync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1213 |                 snd_soc_component_regmap_regcache_sync(component);
         |                 ^
   sound/soc/codecs/wm9713.c:1213:3: note: did you mean 'snd_soc_component_regcache_sync'?
   include/sound/soc-component.h:497:19: note: 'snd_soc_component_regcache_sync' declared here
     497 | static inline int snd_soc_component_regcache_sync(struct snd_soc_component *component)
         |                   ^
   2 errors generated.
--
>> sound/soc/codecs/wm_adsp_fw_find_test.c:287:24: error: call to undeclared function 'snd_soc_component_alloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     287 |         priv->dsp.component = snd_soc_component_alloc(test_dev, &component_driver,
         |                               ^
   sound/soc/codecs/wm_adsp_fw_find_test.c:287:24: note: did you mean 'snd_soc_component_close'?
   include/sound/soc-component.h:410:5: note: 'snd_soc_component_close' declared here
     410 | int snd_soc_component_close(struct snd_soc_component *component,
         |     ^
>> sound/soc/codecs/wm_adsp_fw_find_test.c:287:22: error: incompatible integer to pointer conversion assigning to 'struct snd_soc_component *' from 'int' [-Wint-conversion]
     287 |         priv->dsp.component = snd_soc_component_alloc(test_dev, &component_driver,
         |                             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     288 |                                                       NULL, NULL, NULL, NULL);
         |                                                       ~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.


vim +558 sound/soc/codecs/cs35l56-test.c

   528	
   529	static int cs35l56_test_case_init_common(struct kunit *test)
   530	{
   531		struct cs35l56_test_priv *priv;
   532		const struct cs35l56_test_param *param = test->param_value;
   533		struct cs35l56_private *cs35l56;
   534		struct snd_soc_card *card;
   535	
   536		KUNIT_ASSERT_NOT_NULL(test, cs_amp_test_hooks);
   537	
   538		priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL);
   539		if (!priv)
   540			return -ENOMEM;
   541	
   542		test->priv = priv;
   543	
   544		/* Create dummy amp driver dev */
   545		priv->amp_dev = faux_device_create("cs35l56_test_drv", NULL, NULL);
   546		KUNIT_ASSERT_NOT_NULL(test, priv->amp_dev);
   547		KUNIT_ASSERT_EQ(test, 0,
   548				kunit_add_action_or_reset(test,
   549							  faux_device_destroy_wrapper,
   550							  priv->amp_dev));
   551	
   552		/* Construct minimal set of driver structs */
   553		priv->cs35l56_priv = kunit_kzalloc(test, sizeof(*priv->cs35l56_priv), GFP_KERNEL);
   554		KUNIT_ASSERT_NOT_NULL(test, priv->cs35l56_priv);
   555		cs35l56 = priv->cs35l56_priv;
   556		cs35l56->base.dev = &priv->amp_dev->dev;
   557	
 > 558		cs35l56->component = snd_soc_component_alloc(cs35l56->base.dev, &component_driver,
   559							     NULL, NULL, NULL, NULL);
   560		dev_set_drvdata(cs35l56->base.dev, cs35l56);
   561	
   562		cs35l56->card = kunit_kzalloc(test, sizeof(*card), GFP_KERNEL);
   563		KUNIT_ASSERT_NOT_NULL(test, cs35l56->card);
   564	
   565		if (param) {
   566			cs35l56->base.type = param->type;
   567			cs35l56->base.rev = param->rev;
   568		}
   569	
   570		return 0;
   571	}
   572	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-06-17 14:08 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=202606172147.CPu1r61e-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