Hi Gabriele, kernel test robot noticed the following build errors:
[auto build test ERROR on 4dc1d1bec89864d8076e5ab314f86f46442bfb02] url: https://github.com/intel-lab-lkp/linux/commits/Gabriele-Monaco/tracing-Fix-DECLARE_TRACE_CONDITION/20250213-171642 base: 4dc1d1bec89864d8076e5ab314f86f46442bfb02 patch link: https://lore.kernel.org/r/20250213090819.419470-4-gmonaco%40redhat.com patch subject: [PATCH v2 03/11] sched: Add sched tracepoints for RV task model config: arm-randconfig-001-20250214 (https://download.01.org/0day-ci/archive/20250214/[email protected]/config) compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250214/[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 >>): >> kernel/sched/core.c:503:2: error: call to undeclared function >> '__do_trace_sched_set_state_tp'; ISO C99 and later do not support implicit >> function declarations [-Wimplicit-function-declaration] __do_trace_sched_set_state_tp(current, current->__state, state_value); ^ kernel/sched/core.c:503:2: note: did you mean 'trace_sched_set_state_tp'? include/trace/events/sched.h:835:1: note: 'trace_sched_set_state_tp' declared here DECLARE_TRACE_CONDITION(sched_set_state_tp, ^ include/linux/tracepoint.h:472:2: note: expanded from macro 'DECLARE_TRACE_CONDITION' __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \ ^ include/linux/tracepoint.h:409:2: note: expanded from macro '__DECLARE_TRACE' __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) ^ include/linux/tracepoint.h:385:21: note: expanded from macro '__DECLARE_TRACE_COMMON' static inline void trace_##name(proto) \ ^ <scratch space>:84:1: note: expanded from here trace_sched_set_state_tp ^ 1 error generated. vim +/__do_trace_sched_set_state_tp +503 kernel/sched/core.c 496 497 /* 498 * Do not call this function directly since it won't check if the tp is enabled. 499 * Call the helper macro trace_set_current_state instead. 500 */ 501 void __do_trace_set_current_state(int state_value) 502 { > 503 __do_trace_sched_set_state_tp(current, current->__state, > state_value); 504 } 505 EXPORT_SYMBOL(__do_trace_set_current_state); 506 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
