tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 9809e40d1abbcdf278f3db91f03a94507bdbb442 commit: 89bf80a4d6d5ba852b9042480e0be23c2c4a628c [1455/1455] sched: Introduce priority load balance for qos scheduler config: x86_64-randconfig-005-20241112 (https://download.01.org/0day-ci/archive/20241203/202412030733.746Ood8y-lkp@i...) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241203/202412030733.746Ood8y-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/202412030733.746Ood8y-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/fair.c:25: In file included from include/linux/hugetlb_inline.h:7: In file included from include/linux/mm.h:2181: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~
kernel/sched/fair.c:3612:36: error: no member named 'cfs_offline_tasks' in 'struct rq'
3612 | (*list_op)(&se->group_node, &rq->cfs_offline_tasks); | ~~ ^
kernel/sched/fair.c:3614:36: error: no member named 'cfs_tasks' in 'struct rq'
3614 | (*list_op)(&se->group_node, &rq->cfs_tasks); | ~~ ^ kernel/sched/fair.c:8678:9: error: call to undeclared function 'sched_idle_cpu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 8678 | !sched_idle_cpu(smp_processor_id()) && | ^ kernel/sched/fair.c:8678:9: note: did you mean 'sched_idle_rq'? kernel/sched/fair.c:6707:12: note: 'sched_idle_rq' declared here 6707 | static int sched_idle_rq(struct rq *rq) | ^ kernel/sched/fair.c:8681:23: error: no member named 'online' in 'struct rq' 8681 | if (!rq_of(cfs_rq)->online) | ~~~~~~~~~~~~~ ^ kernel/sched/fair.c:8960:7: error: no member named 'idle_stamp' in 'struct rq'; did you mean 'idle_state'? 8960 | rq->idle_stamp = 0; | ^~~~~~~~~~ | idle_state kernel/sched/sched.h:1146:24: note: 'idle_state' declared here 1146 | struct cpuidle_state *idle_state; | ^ 1 warning and 5 errors generated.
vim +3612 kernel/sched/fair.c
3602 3603 #ifdef CONFIG_QOS_SCHED_PRIO_LB 3604 static void 3605 adjust_rq_cfs_tasks(void (*list_op)(struct list_head *, struct list_head *), 3606 struct rq *rq, 3607 struct sched_entity *se) 3608 { 3609 struct task_group *tg = task_group(task_of(se)); 3610 3611 if (sysctl_sched_prio_load_balance_enabled && tg->qos_level == -1)
3612 (*list_op)(&se->group_node, &rq->cfs_offline_tasks);
3613 else
3614 (*list_op)(&se->group_node, &rq->cfs_tasks);
3615 } 3616 #endif 3617