* [morimoto:sound-cleanup-2026-07-16 311/311] sound/soc/generic/simple-card-utils.c:23:1: warning: control reaches end of non-void function
@ 2026-07-17 18:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-17 18:39 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2026-07-16
head: e51d2e02d8d4c974132f00eec9d2215a476084f0
commit: e51d2e02d8d4c974132f00eec9d2215a476084f0 [311/311] ASoC: move struct snd_soc_card/snd_soc_card_driver to soc-card.[hc]
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260718/202607180238.00mImDdb-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/202607180238.00mImDdb-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/202607180238.00mImDdb-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from sound/soc/generic/simple-card-utils.c:16:
sound/soc/generic/simple-card-utils.c: In function '_simple_ret':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:22:28: note: in expansion of macro 'simple_priv_to_dev'
22 | return snd_soc_ret(simple_priv_to_dev(priv), ret, "at %s()\n", func);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function 'simple_util_parse_tdm_width_map':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:146:30: note: in expansion of macro 'simple_priv_to_dev'
146 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function 'simple_util_set_dailink_name':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:199:30: note: in expansion of macro 'simple_priv_to_dev'
199 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function 'simple_util_parse_property':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:226:30: note: in expansion of macro 'simple_priv_to_dev'
226 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function 'simple_util_parse_card_name':
sound/soc/generic/simple-card-utils.c:254:15: error: implicit declaration of function 'snd_soc_of_parse_card_name'; did you mean 'snd_soc_of_get_dai_name'? [-Werror=implicit-function-declaration]
254 | ret = snd_soc_of_parse_card_name(card, "label");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_of_get_dai_name
In file included from sound/soc/generic/simple-card-utils.c:16:
sound/soc/generic/simple-card-utils.c: In function 'simple_set_clk_rate':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:431:30: note: in expansion of macro 'simple_priv_to_dev'
431 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function 'simple_util_init_priv':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:892:30: note: in expansion of macro 'simple_priv_to_dev'
892 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function 'graph_util_parse_dai':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:1107:30: note: in expansion of macro 'simple_priv_to_dev'
1107 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function '__graph_util_parse_trigger_order':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card-utils.c:1195:38: note: in expansion of macro 'simple_priv_to_dev'
1195 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card-utils.c: In function '_simple_ret':
>> sound/soc/generic/simple-card-utils.c:23:1: warning: control reaches end of non-void function [-Wreturn-type]
23 | }
| ^
cc1: some warnings being treated as errors
--
In file included from sound/soc/generic/simple-card.c:16:
sound/soc/generic/simple-card.c: In function '_simple_ret':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:36:28: note: in expansion of macro 'simple_priv_to_dev'
36 | return snd_soc_ret(simple_priv_to_dev(priv), ret, "at %s()\n", func);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_parse_dai':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:70:30: note: in expansion of macro 'simple_priv_to_dev'
70 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_parse_node':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:147:30: note: in expansion of macro 'simple_priv_to_dev'
147 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/simple-card.c:148:45: note: in expansion of macro 'simple_priv_to_link'
148 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_link_init':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:181:30: note: in expansion of macro 'simple_priv_to_dev'
181 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/simple-card.c:183:45: note: in expansion of macro 'simple_priv_to_link'
183 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_dai_link_of_dpcm':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:235:30: note: in expansion of macro 'simple_priv_to_dev'
235 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/simple-card.c:236:45: note: in expansion of macro 'simple_priv_to_link'
236 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_dai_link_of':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:312:30: note: in expansion of macro 'simple_priv_to_dev'
312 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/simple-card.c:313:45: note: in expansion of macro 'simple_priv_to_link'
313 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function '__simple_for_each_link':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:372:30: note: in expansion of macro 'simple_priv_to_dev'
372 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_depopulate_aux':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:499:32: note: in expansion of macro 'simple_priv_to_dev'
499 | of_platform_depopulate(simple_priv_to_dev(priv));
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_populate_aux':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:504:30: note: in expansion of macro 'simple_priv_to_dev'
504 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function 'simple_get_dais_count':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/simple-card.c:588:30: note: in expansion of macro 'simple_priv_to_dev'
588 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/simple-card.c: In function '_simple_ret':
>> sound/soc/generic/simple-card.c:37:1: warning: control reaches end of non-void function [-Wreturn-type]
37 | }
| ^
--
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card.c:19:
sound/soc/generic/audio-graph-card.c: In function '_graph_ret':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:27:28: note: in expansion of macro 'simple_priv_to_dev'
27 | return snd_soc_ret(simple_priv_to_dev(priv), ret, "at %s()\n", func);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_parse_node':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:109:30: note: in expansion of macro 'simple_priv_to_dev'
109 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card.c:110:45: note: in expansion of macro 'simple_priv_to_link'
110 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_link_init':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:143:30: note: in expansion of macro 'simple_priv_to_dev'
143 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card.c:145:45: note: in expansion of macro 'simple_priv_to_link'
145 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_dai_link_of_dpcm':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:204:30: note: in expansion of macro 'simple_priv_to_dev'
204 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card.c:205:45: note: in expansion of macro 'simple_priv_to_link'
205 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_dai_link_of':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:289:30: note: in expansion of macro 'simple_priv_to_dev'
289 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card.c:290:45: note: in expansion of macro 'simple_priv_to_link'
290 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function '__graph_for_each_link':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:356:30: note: in expansion of macro 'simple_priv_to_dev'
356 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_count_noml':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:443:30: note: in expansion of macro 'simple_priv_to_dev'
443 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function 'graph_count_dpcm':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card.c:472:30: note: in expansion of macro 'simple_priv_to_dev'
472 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card.c: In function '_graph_ret':
>> sound/soc/generic/audio-graph-card.c:28:1: warning: control reaches end of non-void function [-Wreturn-type]
28 | }
| ^
--
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:17:
sound/soc/generic/audio-graph-card2.c: In function '_graph_ret':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:241:28: note: in expansion of macro 'simple_priv_to_dev'
241 | return snd_soc_ret(simple_priv_to_dev(priv), ret, "at %s()\n", func);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function '__graph_parse_node':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:404:30: note: in expansion of macro 'simple_priv_to_dev'
404 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card2.c:405:45: note: in expansion of macro 'simple_priv_to_link'
405 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_parse_node_multi':
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card2.c:598:45: note: in expansion of macro 'simple_priv_to_link'
598 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:599:30: note: in expansion of macro 'simple_priv_to_dev'
599 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_link_init':
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card2.c:741:45: note: in expansion of macro 'simple_priv_to_link'
741 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'audio_graph2_link_dpcm':
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card2.c:880:45: note: in expansion of macro 'simple_priv_to_link'
880 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'audio_graph2_link_c2c':
include/sound/simple_card_utils.h:91:67: error: invalid use of undefined type 'struct snd_soc_card'
91 | #define simple_priv_to_link(priv, i) (simple_priv_to_card(priv)->dai_link + (i))
| ^~
sound/soc/generic/audio-graph-card2.c:969:45: note: in expansion of macro 'simple_priv_to_link'
969 | struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
| ^~~~~~~~~~~~~~~~~~~
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:1003:38: note: in expansion of macro 'simple_priv_to_dev'
1003 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_link':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:1060:30: note: in expansion of macro 'simple_priv_to_dev'
1060 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_count':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:1235:30: note: in expansion of macro 'simple_priv_to_dev'
1235 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_for_each_link':
include/sound/simple_card_utils.h:90:67: error: invalid use of undefined type 'struct snd_soc_card'
90 | #define simple_priv_to_dev(priv) (simple_priv_to_card(priv)->dev)
| ^~
sound/soc/generic/audio-graph-card2.c:1282:30: note: in expansion of macro 'simple_priv_to_dev'
1282 | struct device *dev = simple_priv_to_dev(priv);
| ^~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function '_graph_ret':
>> sound/soc/generic/audio-graph-card2.c:242:1: warning: control reaches end of non-void function [-Wreturn-type]
242 | }
| ^
vim +23 sound/soc/generic/simple-card-utils.c
abd3147e69481c Kuninori Morimoto 2016-05-31 17
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 18 #define simple_ret(priv, ret) _simple_ret(priv, __func__, ret)
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 19 static inline int _simple_ret(struct simple_util_priv *priv,
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 20 const char *func, int ret)
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 21 {
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 22 return snd_soc_ret(simple_priv_to_dev(priv), ret, "at %s()\n", func);
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 @23 }
2d7395b23dbf4c Kuninori Morimoto 2025-02-05 24
:::::: The code at line 23 was first introduced by commit
:::::: 2d7395b23dbf4c2d60be49b73e4c4705fc446662 ASoC: simple-card-utils: use snd_soc_ret()
:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Mark Brown <broonie@kernel.org>
--
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-07-17 18:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 18:39 [morimoto:sound-cleanup-2026-07-16 311/311] sound/soc/generic/simple-card-utils.c:23:1: warning: control reaches end of non-void function 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.