* [morimoto:sound-cleanup-2026-06-16 326/326] sound/soc/soc-card.c:1337:14: error: 'card_driver' undeclared
@ 2026-06-18 0:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-18 0:58 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2026-06-16
head: 5ce50ac7d0a59c6fb15e1baa7e6824ac096fe092
commit: bcca3afbe4030eb595d239674303afc5fd051920 [326/326] ASoC: soc-card.h: remove compatible definition
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20260618/202606180809.rvSJ22YV-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260618/202606180809.rvSJ22YV-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/202606180809.rvSJ22YV-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/soc/soc-card.c:42:6: warning: no previous prototype for 'snd_soc_card_attach_priv' [-Wmissing-prototypes]
42 | void snd_soc_card_attach_priv(struct snd_soc_card *card, void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/soc-card.c: In function 'snd_soc_card_remove':
sound/soc/soc-card.c:886:27: error: 'struct snd_soc_card_driver' has no member named 'probed'; did you mean 'probe'?
886 | if (card->driver->probed &&
| ^~~~~~
| probe
sound/soc/soc-card.c: In function 'snd_soc_card_register3':
>> sound/soc/soc-card.c:1337:14: error: 'card_driver' undeclared (first use in this function)
1337 | if (!card_driver->name)
| ^~~~~~~~~~~
sound/soc/soc-card.c:1337:14: note: each undeclared identifier is reported only once for each function it appears in
>> sound/soc/soc-card.c:1351:24: error: returning 'int' from a function with return type 'struct snd_soc_card *' makes pointer from integer without a cast [-Wint-conversion]
1351 | return -ENOMEM;
| ^
--
sound/soc/codecs/cs35l56-test.c: In function 'cs35l56_test_system_name_from_ssid':
>> sound/soc/codecs/cs35l56-test.c:84:9: error: implicit declaration of function 'snd_soc_card_set_pci_ssid'; did you mean 'snd_soc_card_driver_set_pci_ssid'? [-Wimplicit-function-declaration]
84 | snd_soc_card_set_pci_ssid(card, 0x12b4, 0xa7c8);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_card_driver_set_pci_ssid
sound/soc/codecs/cs35l56-test.c: In function 'cs35l56_test_case_init_common':
sound/soc/codecs/cs35l56-test.c:558:30: error: implicit declaration of function 'snd_soc_component_alloc'; did you mean 'snd_soc_component_close'? [-Wimplicit-function-declaration]
558 | cs35l56->component = snd_soc_component_alloc(cs35l56->base.dev, &component_driver,
| ^~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_component_close
sound/soc/codecs/cs35l56-test.c:558:28: error: assignment to 'struct snd_soc_component *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
558 | cs35l56->component = snd_soc_component_alloc(cs35l56->base.dev, &component_driver,
| ^
vim +/card_driver +1337 sound/soc/soc-card.c
1331
1332 struct snd_soc_card *snd_soc_card_register3(struct device *dev, struct snd_soc_card_driver *driver, void *priv)
1333 {
1334 struct snd_soc_card *card;
1335 int ret;
1336
> 1337 if (!card_driver->name)
1338
1339 card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL);
1340 if (!card)
1341 return NULL;
1342
1343 card->dev = dev;
1344 card->devres_dev = dev;
1345 card->priv = priv;
1346 card->driver = driver;
1347 card->instantiated = 0;
1348
1349 card->dapm = snd_soc_dapm_alloc(card->dev);
1350 if (!card->dapm)
> 1351 return -ENOMEM;
1352
1353 dev_set_drvdata(card->dev, card);
1354
1355 INIT_LIST_HEAD(&card->widget_list_head);
1356 INIT_LIST_HEAD(&card->path_list_head);
1357 INIT_LIST_HEAD(&card->dapm_list_head);
1358 INIT_LIST_HEAD(&card->dapm_dirty_list_head);
1359 INIT_LIST_HEAD(&card->aux_list_head);
1360 INIT_LIST_HEAD(&card->component_list_head);
1361 INIT_LIST_HEAD(&card->unbind_list);
1362 INIT_LIST_HEAD(&card->rtd_list_head);
1363
1364 mutex_init(&card->mutex);
1365 mutex_init(&card->dapm_mutex);
1366 mutex_init(&card->pcm_mutex);
1367
1368 guard(mutex)(&client_mutex);
1369
1370 ret = call_soc_bind_card(card);
1371 if (ret < 0)
1372 return NULL;
1373
1374 return card;
1375 }
1376 EXPORT_SYMBOL_GPL(snd_soc_card_register3);
1377
--
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-06-18 0:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 0:58 [morimoto:sound-cleanup-2026-06-16 326/326] sound/soc/soc-card.c:1337:14: error: 'card_driver' undeclared 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.