[morimoto:sound-cleanup-2026-07-16 311/311] sound/soc/atmel/atmel-classd.c:475:35: warning: initialization of 'struct atmel_classd *' from 'int' makes pointer from integer without a cast

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/morimoto/linux sound-cleanup-2026-07-16
head:   e51d2e02d8d4c974132f00eec9d2215a476084f0
commit: f582a99aba2473d5c49ad8088a35dda42539f6af [311/311] ASoC: soc-card.h: remove compatible definition
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260717/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260717/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

   sound/soc/atmel/atmel-classd.c: In function 'atmel_classd_asoc_card_init':
   sound/soc/atmel/atmel-classd.c:475:35: error: implicit declaration of function 'snd_soc_card_get_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     475 |         struct atmel_classd *dd = snd_soc_card_get_drvdata(card);
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snd_soc_card_set_priv
>> sound/soc/atmel/atmel-classd.c:475:35: warning: initialization of 'struct atmel_classd *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/atmel/atmel-classd.c: In function 'atmel_classd_probe':
   sound/soc/atmel/atmel-classd.c:605:9: error: implicit declaration of function 'snd_soc_card_set_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     605 |         snd_soc_card_set_drvdata(card, dd);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         snd_soc_card_set_priv
   cc1: some warnings being treated as errors
--
   sound/soc/atmel/atmel-pdmic.c: In function 'atmel_pdmic_asoc_card_init':
   sound/soc/atmel/atmel-pdmic.c:492:34: error: implicit declaration of function 'snd_soc_card_get_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     492 |         struct atmel_pdmic *dd = snd_soc_card_get_drvdata(card);
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
         |                                  snd_soc_card_set_priv
>> sound/soc/atmel/atmel-pdmic.c:492:34: warning: initialization of 'struct atmel_pdmic *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/atmel/atmel-pdmic.c: In function 'atmel_pdmic_probe':
   sound/soc/atmel/atmel-pdmic.c:672:9: error: implicit declaration of function 'snd_soc_card_set_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     672 |         snd_soc_card_set_drvdata(card, dd);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         snd_soc_card_set_priv
   cc1: some warnings being treated as errors
--
   sound/soc/loongson/loongson_card.c: In function 'loongson_card_parse_of':
   sound/soc/loongson/loongson_card.c:235:43: error: implicit declaration of function 'snd_soc_card_get_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     235 |         struct loongson_card_data *data = snd_soc_card_get_drvdata(card);
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~~
         |                                           snd_soc_card_set_priv
>> sound/soc/loongson/loongson_card.c:235:43: warning: initialization of 'struct loongson_card_data *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/loongson/loongson_card.c: In function 'loongson_asoc_card_probe':
   sound/soc/loongson/loongson_card.c:327:9: error: implicit declaration of function 'snd_soc_card_set_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     327 |         snd_soc_card_set_drvdata(card, ls_priv);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         snd_soc_card_set_priv
   cc1: some warnings being treated as errors
--
   sound/soc/mediatek/mt8365/mt8365-mt6357.c: In function 'mt8365_mt6357_gpio_probe':
   sound/soc/mediatek/mt8365/mt8365-mt6357.c:248:51: error: implicit declaration of function 'snd_soc_card_get_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     248 |         struct mtk_soc_card_data *soc_card_data = snd_soc_card_get_drvdata(card);
         |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
         |                                                   snd_soc_card_set_priv
>> sound/soc/mediatek/mt8365/mt8365-mt6357.c:248:51: warning: initialization of 'struct mtk_soc_card_data *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   sound/soc/mediatek/mt8365/mt8365-mt6357.c: In function 'mt8365_mt6357_dev_probe':
   sound/soc/mediatek/mt8365/mt8365-mt6357.c:307:9: error: implicit declaration of function 'snd_soc_card_set_drvdata'; did you mean 'snd_soc_card_set_priv'? [-Werror=implicit-function-declaration]
     307 |         snd_soc_card_set_drvdata(card, soc_card_data);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~
         |         snd_soc_card_set_priv
   cc1: some warnings being treated as errors


vim +475 sound/soc/atmel/atmel-classd.c

e0a25b6d1862414 Songjun Wu        2015-10-08  469  
e0a25b6d1862414 Songjun Wu        2015-10-08  470  /* ASoC sound card */
3910bc3a08c297a Kuninori Morimoto 2026-04-20  471  static int atmel_classd_asoc_card_init(struct snd_soc_card *card,
3910bc3a08c297a Kuninori Morimoto 2026-04-20  472  				       struct snd_soc_card_driver *card_driver)
e0a25b6d1862414 Songjun Wu        2015-10-08  473  {
e0a25b6d1862414 Songjun Wu        2015-10-08  474  	struct snd_soc_dai_link *dai_link;
e0a25b6d1862414 Songjun Wu        2015-10-08 @475  	struct atmel_classd *dd = snd_soc_card_get_drvdata(card);
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  476  	struct snd_soc_dai_link_component *comp;
3910bc3a08c297a Kuninori Morimoto 2026-04-20  477  	struct device *dev = snd_soc_card_to_dev(card);
e0a25b6d1862414 Songjun Wu        2015-10-08  478  
e0a25b6d1862414 Songjun Wu        2015-10-08  479  	dai_link = devm_kzalloc(dev, sizeof(*dai_link), GFP_KERNEL);
e0a25b6d1862414 Songjun Wu        2015-10-08  480  	if (!dai_link)
e0a25b6d1862414 Songjun Wu        2015-10-08  481  		return -ENOMEM;
e0a25b6d1862414 Songjun Wu        2015-10-08  482  
2ed22161b19b112 Andrei Simion     2024-06-04  483  	comp = devm_kzalloc(dev, 2 * sizeof(*comp), GFP_KERNEL);
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  484  	if (!comp)
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  485  		return -ENOMEM;
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  486  
2ed22161b19b112 Andrei Simion     2024-06-04  487  	dai_link->cpus		= &comp[0];
6547effc3aea50c Kuninori Morimoto 2023-09-11  488  	dai_link->codecs	= &snd_soc_dummy_dlc;
2ed22161b19b112 Andrei Simion     2024-06-04  489  	dai_link->platforms	= &comp[1];
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  490  
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  491  	dai_link->num_cpus	= 1;
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  492  	dai_link->num_codecs	= 1;
2ed22161b19b112 Andrei Simion     2024-06-04  493  	dai_link->num_platforms = 1;
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  494  
e0a25b6d1862414 Songjun Wu        2015-10-08  495  	dai_link->name			= "CLASSD";
e0a25b6d1862414 Songjun Wu        2015-10-08  496  	dai_link->stream_name		= "CLASSD PCM";
3d14a1df7d301eb Kuninori Morimoto 2019-06-06  497  	dai_link->cpus->dai_name	= dev_name(dev);
2ed22161b19b112 Andrei Simion     2024-06-04  498  	dai_link->platforms->name	= dev_name(dev);
e0a25b6d1862414 Songjun Wu        2015-10-08  499  
3910bc3a08c297a Kuninori Morimoto 2026-04-20  500  	card_driver->dai_link		= dai_link;
3910bc3a08c297a Kuninori Morimoto 2026-04-20  501  	card_driver->num_links		= 1;
3910bc3a08c297a Kuninori Morimoto 2026-04-20  502  	snd_soc_card_set_name(card, dd->pdata->card_name);
e0a25b6d1862414 Songjun Wu        2015-10-08  503  
e0a25b6d1862414 Songjun Wu        2015-10-08  504  	return 0;
e0a25b6d1862414 Songjun Wu        2015-10-08  505  };
e0a25b6d1862414 Songjun Wu        2015-10-08  506  

:::::: The code at line 475 was first introduced by commit
:::::: e0a25b6d18624140905d79775f9e1b05c12502f5 ASoC: atmel-classd: add the Audio Class D Amplifier

:::::: TO: Songjun Wu <[email protected]>
:::::: CC: Mark Brown <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.