All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto:sound-cleanup-2026-07-16 311/311] sound/soc/codecs/cs35l56-test.c:557:9: error: implicit declaration of function 'snd_soc_component_set_drvdata'; did you mean 'snd_soc_component_set_jack'?
@ 2026-07-17 15:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-17 15:24 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-cleanup-2026-07-16
head:   e51d2e02d8d4c974132f00eec9d2215a476084f0
commit: db31ab2b35b1a9b8892ec5883f4eb5798260075e [311/311] ASoC: soc-component: remove snd_soc_component_{set/get}_drvdata()
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20260717/202607172351.G3rfCkD9-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260717/202607172351.G3rfCkD9-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/202607172351.G3rfCkD9-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/codecs/cs35l56-test.c: In function 'cs35l56_test_case_init_common':
>> sound/soc/codecs/cs35l56-test.c:557:9: error: implicit declaration of function 'snd_soc_component_set_drvdata'; did you mean 'snd_soc_component_set_jack'? [-Wimplicit-function-declaration]
     557 |         snd_soc_component_set_drvdata(cs35l56->component, cs35l56);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |         snd_soc_component_set_jack


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

6f220440399afba Richard Fitzgerald 2026-02-05  522  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  523  static int cs35l56_test_case_init_common(struct kunit *test)
d0ab89951197f0f Richard Fitzgerald 2026-01-21  524  {
d0ab89951197f0f Richard Fitzgerald 2026-01-21  525  	struct cs35l56_test_priv *priv;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  526  	const struct cs35l56_test_param *param = test->param_value;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  527  	struct cs35l56_private *cs35l56;
f91d2ea52853c9b Kuninori Morimoto  2026-06-19  528  	struct snd_soc_card *card;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  529  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  530  	KUNIT_ASSERT_NOT_NULL(test, cs_amp_test_hooks);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  531  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  532  	priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  533  	if (!priv)
d0ab89951197f0f Richard Fitzgerald 2026-01-21  534  		return -ENOMEM;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  535  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  536  	test->priv = priv;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  537  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  538  	/* Create dummy amp driver dev */
d0ab89951197f0f Richard Fitzgerald 2026-01-21  539  	priv->amp_dev = faux_device_create("cs35l56_test_drv", NULL, NULL);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  540  	KUNIT_ASSERT_NOT_NULL(test, priv->amp_dev);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  541  	KUNIT_ASSERT_EQ(test, 0,
d0ab89951197f0f Richard Fitzgerald 2026-01-21  542  			kunit_add_action_or_reset(test,
d0ab89951197f0f Richard Fitzgerald 2026-01-21  543  						  faux_device_destroy_wrapper,
d0ab89951197f0f Richard Fitzgerald 2026-01-21  544  						  priv->amp_dev));
d0ab89951197f0f Richard Fitzgerald 2026-01-21  545  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  546  	/* Construct minimal set of driver structs */
d0ab89951197f0f Richard Fitzgerald 2026-01-21  547  	priv->cs35l56_priv = kunit_kzalloc(test, sizeof(*priv->cs35l56_priv), GFP_KERNEL);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  548  	KUNIT_ASSERT_NOT_NULL(test, priv->cs35l56_priv);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  549  	cs35l56 = priv->cs35l56_priv;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  550  	cs35l56->base.dev = &priv->amp_dev->dev;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  551  
f91d2ea52853c9b Kuninori Morimoto  2026-06-19  552  	card = snd_soc_card_alloc(&priv->amp_dev->dev);
f91d2ea52853c9b Kuninori Morimoto  2026-06-19  553  	KUNIT_ASSERT_NOT_NULL(test, card);
f91d2ea52853c9b Kuninori Morimoto  2026-06-19  554  
f91d2ea52853c9b Kuninori Morimoto  2026-06-19  555  	cs35l56->component = snd_soc_component_alloc(cs35l56->base.dev);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  556  	KUNIT_ASSERT_NOT_NULL(test, cs35l56->component);
6f220440399afba Richard Fitzgerald 2026-02-05 @557  	snd_soc_component_set_drvdata(cs35l56->component, cs35l56);
f91d2ea52853c9b Kuninori Morimoto  2026-06-19  558  	test_hack_component_setup(cs35l56->component, card, NULL);
d0ab89951197f0f Richard Fitzgerald 2026-01-21  559  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  560  	if (param) {
d0ab89951197f0f Richard Fitzgerald 2026-01-21  561  		cs35l56->base.type = param->type;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  562  		cs35l56->base.rev = param->rev;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  563  	}
d0ab89951197f0f Richard Fitzgerald 2026-01-21  564  
d0ab89951197f0f Richard Fitzgerald 2026-01-21  565  	return 0;
d0ab89951197f0f Richard Fitzgerald 2026-01-21  566  }
d0ab89951197f0f Richard Fitzgerald 2026-01-21  567  

:::::: The code at line 557 was first introduced by commit
:::::: 6f220440399afba29165e0597fa2c3aa836191d7 ASoC: cs35l56: KUnit tests for parsing and using onchip GPIOs

:::::: TO: Richard Fitzgerald <rf@opensource.cirrus.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-07-17 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 15:24 [morimoto:sound-cleanup-2026-07-16 311/311] sound/soc/codecs/cs35l56-test.c:557:9: error: implicit declaration of function 'snd_soc_component_set_drvdata'; did you mean 'snd_soc_component_set_jack'? kernel test robot

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.