[alsa-devel] [asoc:topic/core 3/3] sound//soc/soc-core.c:3856:8: error: too many arguments to function 'snd_soc_register_dais'

kbuild test robot fengguang.wu at intel.com
Wed Feb 14 14:49:58 CET 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/core
head:   a8768c52c511e92d9c9816cecaec4bca77da8a89
commit: a8768c52c511e92d9c9816cecaec4bca77da8a89 [3/3] ASoC: soc-core: remove legacy_dai_naming from snd_soc_register_dais()
config: x86_64-randconfig-x018-201806 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout a8768c52c511e92d9c9816cecaec4bca77da8a89
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   sound//soc/soc-core.c: In function 'snd_soc_register_codec':
>> sound//soc/soc-core.c:3856:8: error: too many arguments to function 'snd_soc_register_dais'
     ret = snd_soc_register_dais(&codec->component, dai_drv, num_dai, false);
           ^~~~~~~~~~~~~~~~~~~~~
   sound//soc/soc-core.c:3152:12: note: declared here
    static int snd_soc_register_dais(struct snd_soc_component *component,
               ^~~~~~~~~~~~~~~~~~~~~

vim +/snd_soc_register_dais +3856 sound//soc/soc-core.c

a39f75f79 Xiubo Li           2014-03-26  3847  
a39f75f79 Xiubo Li           2014-03-26  3848  	if (codec_drv->get_regmap)
886f56922 Lars-Peter Clausen 2014-08-19  3849  		codec->component.regmap = codec_drv->get_regmap(dev);
a39f75f79 Xiubo Li           2014-03-26  3850  
f0fba2ad1 Liam Girdwood      2010-03-17  3851  	for (i = 0; i < num_dai; i++) {
273d778ef Kuninori Morimoto  2017-10-11  3852  		convert_endianness_formats(&dai_drv[i].playback);
273d778ef Kuninori Morimoto  2017-10-11  3853  		convert_endianness_formats(&dai_drv[i].capture);
151ab22cf Mark Brown         2009-05-09  3854  	}
151ab22cf Mark Brown         2009-05-09  3855  
bb13109d8 Lars-Peter Clausen 2014-06-16 @3856  	ret = snd_soc_register_dais(&codec->component, dai_drv, num_dai, false);
5acd7dfbd Kuninori Morimoto  2013-02-25  3857  	if (ret < 0) {
f42cf8d6a Masanari Iida      2015-02-24  3858  		dev_err(dev, "ASoC: Failed to register DAIs: %d\n", ret);
bb13109d8 Lars-Peter Clausen 2014-06-16  3859  		goto err_cleanup;
26b01ccdc Mark Brown         2010-08-18  3860  	}
f0fba2ad1 Liam Girdwood      2010-03-17  3861  
bb13109d8 Lars-Peter Clausen 2014-06-16  3862  	list_for_each_entry(dai, &codec->component.dai_list, list)
bb13109d8 Lars-Peter Clausen 2014-06-16  3863  		dai->codec = codec;
f0fba2ad1 Liam Girdwood      2010-03-17  3864  
e1328a832 Kuninori Morimoto  2013-03-07  3865  	mutex_lock(&client_mutex);
bb13109d8 Lars-Peter Clausen 2014-06-16  3866  	snd_soc_component_add_unlocked(&codec->component);
054880feb Mark Brown         2012-04-09  3867  	list_add(&codec->list, &codec_list);
e1328a832 Kuninori Morimoto  2013-03-07  3868  	mutex_unlock(&client_mutex);
e1328a832 Kuninori Morimoto  2013-03-07  3869  
f4333203e Lars-Peter Clausen 2014-06-16  3870  	dev_dbg(codec->dev, "ASoC: Registered codec '%s'\n",
f4333203e Lars-Peter Clausen 2014-06-16  3871  		codec->component.name);
0d0cf00a7 Mark Brown         2008-12-10  3872  	return 0;
f0fba2ad1 Liam Girdwood      2010-03-17  3873  
bb13109d8 Lars-Peter Clausen 2014-06-16  3874  err_cleanup:
bb13109d8 Lars-Peter Clausen 2014-06-16  3875  	snd_soc_component_cleanup(&codec->component);
bb13109d8 Lars-Peter Clausen 2014-06-16  3876  err_free:
f0fba2ad1 Liam Girdwood      2010-03-17  3877  	kfree(codec);
f0fba2ad1 Liam Girdwood      2010-03-17  3878  	return ret;
0d0cf00a7 Mark Brown         2008-12-10  3879  }
0d0cf00a7 Mark Brown         2008-12-10  3880  EXPORT_SYMBOL_GPL(snd_soc_register_codec);
0d0cf00a7 Mark Brown         2008-12-10  3881  

:::::: The code at line 3856 was first introduced by commit
:::::: bb13109d85ba5f8009f1a26d840e70198537a4e3 ASoC: Split component registration into two steps

:::::: TO: Lars-Peter Clausen <lars at metafoo.de>
:::::: CC: Mark Brown <broonie at linaro.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30793 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180214/306f6feb/attachment-0001.bin>


More information about the Alsa-devel mailing list