[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: x86_64-randconfig-r0-06200024 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 9b3941a8fcdd77d9f17f36f48d84bf6f1ba1a0fb
        # save the attached .config to linux build tree
        make ARCH=x86_64 

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

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/export.h:45:0,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from sound//soc/soc-core.c:20:
   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)
              ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
>> sound//soc/soc-core.c:1051:3: note: in expansion of macro 'if'
      if (link->dobj.type == SND_SOC_DOBJ_DAI_LINK)
      ^~
>> 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)
              ^
   include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                ^~~~
>> sound//soc/soc-core.c:1051:3: note: in expansion of macro 'if'
      if (link->dobj.type == SND_SOC_DOBJ_DAI_LINK)
      ^~
>> 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)
              ^
   include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
     (cond) ?     \
      ^~~~
   include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
    #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                               ^~~~~~~~~~~~~~
>> sound//soc/soc-core.c:1051:3: note: in expansion of macro 'if'
      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
                 ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
   sound//soc/soc-core.c:1187:2: note: in expansion of macro 'if'
     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) {
                    ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
   sound//soc/soc-core.c:1187:2: note: in expansion of macro 'if'
     if (dai_link->dobj.type
     ^~
   sound//soc/soc-core.c:1187:14: error: 'struct snd_soc_dai_link' has no member named 'dobj'
     if (dai_link->dobj.type
                 ^
   include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                ^~~~
   sound//soc/soc-core.c:1187:2: note: in expansion of macro 'if'
     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) {
                    ^
   include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                ^~~~
   sound//soc/soc-core.c:1187:2: note: in expansion of macro 'if'
     if (dai_link->dobj.type
     ^~
   sound//soc/soc-core.c:1187:14: error: 'struct snd_soc_dai_link' has no member named 'dobj'
     if (dai_link->dobj.type
                 ^
   include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
     (cond) ?     \
      ^~~~
   include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
    #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                               ^~~~~~~~~~~~~~
   sound//soc/soc-core.c:1187:2: note: in expansion of macro 'if'
     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) {
                    ^
   include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
     (cond) ?     \
      ^~~~
   include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
    #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
                               ^~~~~~~~~~~~~~
   sound//soc/soc-core.c:1187:2: note: in expansion of macro 'if'
     if (dai_link->dobj.type
     ^~
   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__)
                                   ^~~~~~~~~~~
   In file included from include/linux/export.h:45:0,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from sound//soc/soc-core.c:20:
   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)
                 ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
   sound//soc/soc-core.c:1199:2: note: in expansion of macro 'if'
     if (dai_link->dobj.type && card->add_dai_link)
     ^~
   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)
                 ^
   include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                                ^~~~
   sound//soc/soc-core.c:1199:2: note: in expansion of macro 'if'
     if (dai_link->dobj.type && card->add_dai_link)
     ^~
   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)
                 ^
   include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
     (cond) ?     \

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