[asoc:for-5.3 362/362] sound/soc/soc-core.c:1051:11: error: 'struct snd_soc_dai_link' has no member named 'dobj'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3
head:   9b3941a8fcdd77d9f17f36f48d84bf6f1ba1a0fb
commit: 9b3941a8fcdd77d9f17f36f48d84bf6f1ba1a0fb [362/362] ASoC: soc.h: dobj is used only when SND_SOC_TOPOLOGY
config: arm-at91_dt_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9b3941a8fcdd77d9f17f36f48d84bf6f1ba1a0fb
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   sound/soc/soc-core.c: In function 'soc_remove_dai_links':
>> sound/soc/soc-core.c:1051:11: error: 'struct snd_soc_dai_link' has no member named 'dobj'
      if (link->dobj.type == SND_SOC_DOBJ_DAI_LINK)
              ^~
   sound/soc/soc-core.c: In function 'snd_soc_add_dai_link':
   sound/soc/soc-core.c:1187:14: error: 'struct snd_soc_dai_link' has no member named 'dobj'
     if (dai_link->dobj.type
                 ^~
   sound/soc/soc-core.c:1188:17: error: 'struct snd_soc_dai_link' has no member named 'dobj'
         && dai_link->dobj.type != SND_SOC_DOBJ_DAI_LINK) {
                    ^~
   In file included from include/linux/platform_device.h:14:0,
                    from sound/soc/soc-core.c:27:
   sound/soc/soc-core.c:1190:12: error: 'struct snd_soc_dai_link' has no member named 'dobj'
       dai_link->dobj.type);
               ^
   include/linux/device.h:1483:32: note: in definition of macro 'dev_err'
     _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                   ^~~~~~~~~~~
   sound/soc/soc-core.c:1199:14: error: 'struct snd_soc_dai_link' has no member named 'dobj'
     if (dai_link->dobj.type && card->add_dai_link)
                 ^~
   sound/soc/soc-core.c: In function 'snd_soc_remove_dai_link':
   sound/soc/soc-core.c:1223:14: error: 'struct snd_soc_dai_link' has no member named 'dobj'
     if (dai_link->dobj.type
                 ^~
   sound/soc/soc-core.c:1224:17: error: 'struct snd_soc_dai_link' has no member named 'dobj'
         && dai_link->dobj.type != SND_SOC_DOBJ_DAI_LINK) {
                    ^~
   In file included from include/linux/platform_device.h:14:0,
                    from sound/soc/soc-core.c:27:
   sound/soc/soc-core.c:1226:12: error: 'struct snd_soc_dai_link' has no member named 'dobj'
       dai_link->dobj.type);
               ^
   include/linux/device.h:1483:32: note: in definition of macro 'dev_err'
     _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
                                   ^~~~~~~~~~~
   sound/soc/soc-core.c:1235:14: error: 'struct snd_soc_dai_link' has no member named 'dobj'
     if (dai_link->dobj.type && card->remove_dai_link)
                 ^~

vim +1051 sound/soc/soc-core.c

62ae68fa5 Stephen Warren    2012-06-08  1033  
0671fd8ef Kuninori Morimoto 2011-04-08  1034  static void soc_remove_dai_links(struct snd_soc_card *card)
0671fd8ef Kuninori Morimoto 2011-04-08  1035  {
1a497983a Mengdong Lin      2015-11-18  1036  	int order;
1a497983a Mengdong Lin      2015-11-18  1037  	struct snd_soc_pcm_runtime *rtd;
f8f80361d Mengdong Lin      2015-12-02  1038  	struct snd_soc_dai_link *link, *_link;
0671fd8ef Kuninori Morimoto 2011-04-08  1039  
1a1035a98 Kuninori Morimoto 2018-09-18  1040  	for_each_comp_order(order) {
bcb1fd1fc Kuninori Morimoto 2018-09-18  1041  		for_each_card_rtds(card, rtd)
1a497983a Mengdong Lin      2015-11-18  1042  			soc_remove_link_dais(card, rtd, order);
62ae68fa5 Stephen Warren    2012-06-08  1043  	}
62ae68fa5 Stephen Warren    2012-06-08  1044  
1a1035a98 Kuninori Morimoto 2018-09-18  1045  	for_each_comp_order(order) {
bcb1fd1fc Kuninori Morimoto 2018-09-18  1046  		for_each_card_rtds(card, rtd)
1a497983a Mengdong Lin      2015-11-18  1047  			soc_remove_link_components(card, rtd, order);
0168bf0d1 Liam Girdwood     2011-06-07  1048  	}
62ae68fa5 Stephen Warren    2012-06-08  1049  
98061fdbf Kuninori Morimoto 2018-09-18  1050  	for_each_card_links_safe(card, link, _link) {
f8f80361d Mengdong Lin      2015-12-02 @1051  		if (link->dobj.type == SND_SOC_DOBJ_DAI_LINK)
f8f80361d Mengdong Lin      2015-12-02  1052  			dev_warn(card->dev, "Topology forgot to remove link %s?\n",
f8f80361d Mengdong Lin      2015-12-02  1053  				link->name);
f8f80361d Mengdong Lin      2015-12-02  1054  
f8f80361d Mengdong Lin      2015-12-02  1055  		list_del(&link->list);
f8f80361d Mengdong Lin      2015-12-02  1056  	}
0671fd8ef Kuninori Morimoto 2011-04-08  1057  }
0671fd8ef Kuninori Morimoto 2011-04-08  1058  

:::::: The code at line 1051 was first introduced by commit
:::::: f8f80361d07d503093940097e967a7edaa134ca2 ASoC: Implement DAI links in a list & define API to add/remove a link

:::::: TO: Mengdong Lin <mengdong.lin@xxxxxxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux