 
            Hi Cheng, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 5860abf4ca1c1e5ced0d4787886db4195a9c54ea commit: 433c0b72564239cf3086f563d5ca32a10e4ffd3f [3257/3257] sched/fair: Count the number of tasks marked as steal_task on cfs_rq config: x86_64-randconfig-015-20251029 (https://download.01.org/0day-ci/archive/20251030/202510300412.XOY1Sf5f-lkp@i...) compiler: gcc-13 (Debian 13.3.0-16) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251030/202510300412.XOY1Sf5f-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/202510300412.XOY1Sf5f-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/sched/fair.c: In function 'group_steal_enabled': kernel/sched/fair.c:4483:38: error: implicit declaration of function 'is_tg_steal' [-Werror=implicit-function-declaration] 4483 | return group_steal_used() && is_tg_steal(steal_task); | ^~~~~~~~~~~ kernel/sched/fair.c: In function 'overload_clear': kernel/sched/fair.c:4489:23: warning: variable 'time' set but not used [-Wunused-but-set-variable] 4489 | unsigned long time; | ^~~~ kernel/sched/fair.c: In function 'overload_set': kernel/sched/fair.c:4517:23: warning: variable 'time' set but not used [-Wunused-but-set-variable] 4517 | unsigned long time; | ^~~~ kernel/sched/fair.c: At top level: kernel/sched/fair.c:6013:6: warning: no previous prototype for 'init_cfs_bandwidth' [-Wmissing-prototypes] 6013 | void init_cfs_bandwidth(struct cfs_bandwidth *cfs_b) {} | ^~~~~~~~~~~~~~~~~~ kernel/sched/fair.c: In function 'select_task_rq_fair': kernel/sched/fair.c:8191:23: warning: variable 'time' set but not used [-Wunused-but-set-variable] 8191 | unsigned long time; | ^~~~ kernel/sched/fair.c: In function 'pick_next_task_fair': kernel/sched/fair.c:9185:23: warning: variable 'time' set but not used [-Wunused-but-set-variable] 9185 | unsigned long time; | ^~~~ kernel/sched/fair.c: In function 'can_migrate_task_llc':
kernel/sched/fair.c:9944:50: error: invalid use of undefined type 'struct task_group' 9944 | if (group_steal_used() && !is_tg_steal(tg->steal_task)) | ^~ kernel/sched/fair.c: At top level: kernel/sched/fair.c:13961:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes] 13961 | void free_fair_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:13963:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes] 13963 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent) | ^~~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:13968:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes] 13968 | void online_fair_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/fair.c:13970:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes] 13970 | void unregister_fair_sched_group(struct task_group *tg) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +9944 kernel/sched/fair.c 9929 9930 #ifdef CONFIG_SCHED_STEAL 9931 /* 9932 * Return true if task @p can migrate from @rq to @dst_rq in the same LLC. 9933 * No need to test for co-locality, and no need to test task_hot(), as sharing 9934 * LLC provides cache warmth at that level. 9935 */ 9936 static bool 9937 can_migrate_task_llc(struct task_struct *p, struct rq *rq, struct rq *dst_rq) 9938 { 9939 int dst_cpu = dst_rq->cpu; 9940 struct task_group *tg = task_group(p); 9941 9942 lockdep_assert_rq_held(rq); 9943
9944 if (group_steal_used() && !is_tg_steal(tg->steal_task)) 9945 return false; 9946 9947 if (throttled_lb_pair(tg, cpu_of(rq), dst_cpu)) 9948 return false; 9949 9950 if (!cpumask_test_cpu(dst_cpu, p->cpus_ptr)) { 9951 schedstat_inc(p->se.statistics.nr_failed_migrations_affine); 9952 return false; 9953 } 9954 9955 if (task_running(rq, p)) { 9956 schedstat_inc(p->se.statistics.nr_failed_migrations_running); 9957 return false; 9958 } 9959 9960 return true; 9961 } 9962 #endif 9963
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki