
Hi Thomas, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: e7e24815dc35fd89241933daa8733b46f157ec60 commit: f2701b77bbd992f3df4631de8493f21db0830452 [1422/1422] Merge 4.18-rc7 into master to pick up the KVM dependcy config: x86_64-buildonly-randconfig-002-20250210 (https://download.01.org/0day-ci/archive/20250211/202502110821.EGD3OpQb-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250211/202502110821.EGD3OpQb-lkp@i...) 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/202502110821.EGD3OpQb-lkp@intel.com/ All warnings (new ones prefixed by >>): | ^~~~~~~ include/linux/compiler.h:58:49: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ kernel/sched/core.c:6738:17: note: in expansion of macro 'if' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/jump_label.h:416:41: note: in expansion of macro 'likely' 416 | #define static_branch_likely(x) likely(static_key_enabled(&(x)->key)) | ^~~~~~ include/linux/cgroup.h:92:9: note: in expansion of macro 'static_branch_likely' 92 | static_branch_likely(&ss ## _on_dfl_key) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/core.c:6738:21: note: in expansion of macro 'cgroup_subsys_on_dfl' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:61:31: warning: ignoring attribute 'section ("_ftrace_branch")' because it conflicts with previous 'section ("_ftrace_annotated_branch")' [-Wattributes] 61 | static struct ftrace_branch_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:58:49: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ kernel/sched/core.c:6738:17: note: in expansion of macro 'if' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/jump_label.h:416:41: note: in expansion of macro 'likely' 416 | #define static_branch_likely(x) likely(static_key_enabled(&(x)->key)) | ^~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ include/linux/jump_label.h:325:9: note: in expansion of macro 'if' 325 | if (!__builtin_types_compatible_p(typeof(*x), struct static_key) && \ | ^~ include/linux/jump_label.h:416:48: note: in expansion of macro 'static_key_enabled' 416 | #define static_branch_likely(x) likely(static_key_enabled(&(x)->key)) | ^~~~~~~~~~~~~~~~~~ include/linux/cgroup.h:92:9: note: in expansion of macro 'static_branch_likely' 92 | static_branch_likely(&ss ## _on_dfl_key) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/core.c:6738:21: note: in expansion of macro 'cgroup_subsys_on_dfl' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:28:33: note: previous declaration here 28 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:58:49: note: in definition of macro '__trace_if' 58 | if (__builtin_constant_p(!!(cond)) ? !!(cond) : \ | ^~~~ kernel/sched/core.c:6738:17: note: in expansion of macro 'if' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/jump_label.h:416:41: note: in expansion of macro 'likely' 416 | #define static_branch_likely(x) likely(static_key_enabled(&(x)->key)) | ^~~~~~ include/linux/cgroup.h:92:9: note: in expansion of macro 'static_branch_likely' 92 | static_branch_likely(&ss ## _on_dfl_key) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/core.c:6738:21: note: in expansion of macro 'cgroup_subsys_on_dfl' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:25:39: warning: ignoring attribute 'section ("_ftrace_annotated_branch")' because it conflicts with previous 'section ("_ftrace_branch")' [-Wattributes] 25 | static struct ftrace_likely_data \ | ^~~~~~~~~~~~~~~~~~ include/linux/compiler.h:69:30: note: in definition of macro '__trace_if' 69 | ______r = !!(cond); \ | ^~~~ kernel/sched/core.c:6738:17: note: in expansion of macro 'if' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~ include/linux/compiler.h:45:26: note: in expansion of macro '__branch_check__' 45 | # define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/linux/jump_label.h:416:41: note: in expansion of macro 'likely' 416 | #define static_branch_likely(x) likely(static_key_enabled(&(x)->key)) | ^~~~~~ include/linux/cgroup.h:92:9: note: in expansion of macro 'static_branch_likely' 92 | static_branch_likely(&ss ## _on_dfl_key) | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/core.c:6738:21: note: in expansion of macro 'cgroup_subsys_on_dfl' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:64:25: note: previous declaration here 64 | ______f = { \ | ^~~~~~~ include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if' 56 | #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) ) | ^~~~~~~~~~ kernel/sched/core.c:6738:17: note: in expansion of macro 'if' 6738 | if (cgroup_subsys_on_dfl(cpu_cgrp_subsys)) { | ^~
kernel/sched/.tmp_core.o: warning: objtool: missing symbol for section .text.unlikely
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki