tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: a1fd264a5653d0f3d66669ec3b88a99b929f8717 commit: b7772972a0a76efac27078392f3f706914fe2af7 [2417/2417] sched/core: Add cpu.steal_task in cgroup v1 cpu subsystem config: x86_64-randconfig-071-20241112 (https://download.01.org/0day-ci/archive/20241202/202412022133.n8HK8mnc-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/20241202/202412022133.n8HK8mnc-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/202412022133.n8HK8mnc-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/sched/core.c:2750:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes] 2750 | void sched_set_stop_task(int cpu, struct task_struct *stop) | ^~~~~~~~~~~~~~~~~~~ kernel/sched/core.c: In function 'sched_init': kernel/sched/core.c:8279:17: error: 'root_task_group' undeclared (first use in this function); did you mean 'task_group'? 8279 | root_task_group.steal_task = TG_STEAL_NO; | ^~~~~~~~~~~~~~~ | task_group kernel/sched/core.c:8279:17: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/core.c:8279:46: error: 'TG_STEAL_NO' undeclared (first use in this function); did you mean 'PGSTEAL_ANON'?
8279 | root_task_group.steal_task = TG_STEAL_NO; | ^~~~~~~~~~~ | PGSTEAL_ANON
vim +8279 kernel/sched/core.c
8253 8254 wait_bit_init(); 8255 8256 #ifdef CONFIG_FAIR_GROUP_SCHED 8257 ptr += 2 * nr_cpu_ids * sizeof(void **); 8258 #endif 8259 #ifdef CONFIG_RT_GROUP_SCHED 8260 ptr += 2 * nr_cpu_ids * sizeof(void **); 8261 #endif 8262 if (ptr) { 8263 ptr = (unsigned long)kzalloc(ptr, GFP_NOWAIT); 8264 8265 #ifdef CONFIG_FAIR_GROUP_SCHED 8266 root_task_group.se = (struct sched_entity **)ptr; 8267 ptr += nr_cpu_ids * sizeof(void **); 8268 8269 root_task_group.cfs_rq = (struct cfs_rq **)ptr; 8270 ptr += nr_cpu_ids * sizeof(void **); 8271 8272 root_task_group.shares = ROOT_TASK_GROUP_LOAD; 8273 init_cfs_bandwidth(&root_task_group.cfs_bandwidth); 8274 #endif /* CONFIG_FAIR_GROUP_SCHED */ 8275 #ifdef CONFIG_QOS_SCHED_SMT_EXPELLER 8276 root_task_group.smt_expell = TG_SMT_EXPELL; 8277 #endif 8278 #ifdef CONFIG_SCHED_STEAL
8279 root_task_group.steal_task = TG_STEAL_NO;
8280 #endif 8281 #ifdef CONFIG_RT_GROUP_SCHED 8282 root_task_group.rt_se = (struct sched_rt_entity **)ptr; 8283 ptr += nr_cpu_ids * sizeof(void **); 8284 8285 root_task_group.rt_rq = (struct rt_rq **)ptr; 8286 ptr += nr_cpu_ids * sizeof(void **); 8287