[morimoto:sound-cleanup-2026-07-16 311/311] include/trace/events/asoc.h:31:114: error: invalid use of undefined type 'struct snd_soc_component'
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: e5cb44e887fc27a5ca0bcbcc673b11edb01174f8 [311/311] ASoC: soc-component: capsuling Component config: csky-allmodconfig (https://download.01.org/0day-ci/archive/20260718/[email protected]/config) compiler: csky-linux-gcc (GCC) 16.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/[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 errors (new ones prefixed by >>): In file included from include/trace/define_trace.h:132, from include/trace/events/asoc.h:280, from sound/soc/soc-core.c:43: include/trace/events/asoc.h: In function 'trace_event_get_offsets_snd_soc_dapm': >> include/trace/events/asoc.h:31:114: error: invalid use of undefined type 'struct snd_soc_component' 31 | __string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)") | ^~ include/trace/trace_events.h:285:9: note: in definition of macro 'DECLARE_EVENT_CLASS' 285 | tstruct; \ | ^~~~~~~ include/trace/events/asoc.h:29:9: note: in expansion of macro 'TP_STRUCT__entry' 29 | TP_STRUCT__entry( | ^~~~~~~~~~~~~~~~ include/trace/stages/stage5_get_offsets.h:59:29: note: in expansion of macro '__dynamic_array' 59 | #define __string(item, src) __dynamic_array(char, item, \ | ^~~~~~~~~~~~~~~ include/trace/events/asoc.h:31:17: note: in expansion of macro '__string' 31 | __string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)") | ^~~~~~~~ >> include/trace/events/asoc.h:31:114: error: invalid use of undefined type 'struct snd_soc_component' 31 | __string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)") | ^~ include/trace/trace_events.h:285:9: note: in definition of macro 'DECLARE_EVENT_CLASS' 285 | tstruct; \ | ^~~~~~~ include/trace/events/asoc.h:29:9: note: in expansion of macro 'TP_STRUCT__entry' 29 | TP_STRUCT__entry( | ^~~~~~~~~~~~~~~~ include/trace/events/asoc.h:31:17: note: in expansion of macro '__string' 31 | __string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)") | ^~~~~~~~ vim +31 include/trace/events/asoc.h a8b1d34f3ee1bc Mark Brown 2010-11-03 24 6ef46a69ec32fe Luca Ceresoli 2024-03-06 25 TP_PROTO(struct snd_soc_dapm_context *dapm, int val), 84e909303dbd3c Mark Brown 2010-11-04 26 6ef46a69ec32fe Luca Ceresoli 2024-03-06 27 TP_ARGS(dapm, val), 84e909303dbd3c Mark Brown 2010-11-04 28 84e909303dbd3c Mark Brown 2010-11-04 29 TP_STRUCT__entry( 8855eb7d29400f Kuninori Morimoto 2025-11-11 30 __string( card_name, snd_soc_dapm_to_card(dapm)->name) 8855eb7d29400f Kuninori Morimoto 2025-11-11 @31 __string( comp_name, snd_soc_dapm_to_component(dapm) ? snd_soc_dapm_to_component(dapm)->name : "(none)") 84e909303dbd3c Mark Brown 2010-11-04 32 __field( int, val) 84e909303dbd3c Mark Brown 2010-11-04 33 ), 84e909303dbd3c Mark Brown 2010-11-04 34 84e909303dbd3c Mark Brown 2010-11-04 35 TP_fast_assign( 2c92ca849fcc6e Steven Rostedt (Google 2024-05-16 36) __assign_str(card_name); 2c92ca849fcc6e Steven Rostedt (Google 2024-05-16 37) __assign_str(comp_name); 84e909303dbd3c Mark Brown 2010-11-04 38 __entry->val = val; 84e909303dbd3c Mark Brown 2010-11-04 39 ), 84e909303dbd3c Mark Brown 2010-11-04 40 6ef46a69ec32fe Luca Ceresoli 2024-03-06 41 TP_printk("card=%s component=%s val=%d", 6ef46a69ec32fe Luca Ceresoli 2024-03-06 42 __get_str(card_name), __get_str(comp_name), (int)__entry->val) 84e909303dbd3c Mark Brown 2010-11-04 43 ); 84e909303dbd3c Mark Brown 2010-11-04 44 :::::: The code at line 31 was first introduced by commit :::::: 8855eb7d29400fb7b2882da33725db2801c410e4 ASoC: asoc.h: convert to snd_soc_dapm_xxx() :::::: TO: Kuninori Morimoto <[email protected]> :::::: CC: Mark Brown <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki