[openeuler:OLK-5.10 3201/3201] kernel/sched/soft_domain.c:186:10: error: implicit declaration of function 'cpu_util_cfs'

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 082f87c04789af128a3f27914b5d9aa8c5bbe517 commit: dd6655291bf7230ef984e1d283a5ec05821f996f [3201/3201] sched: Attach task group to soft domain config: x86_64-buildonly-randconfig-002-20250909 (https://download.01.org/0day-ci/archive/20250909/202509090052.9gEjUjCy-lkp@i...) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250909/202509090052.9gEjUjCy-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/202509090052.9gEjUjCy-lkp@intel.com/ All errors (new ones prefixed by >>):
kernel/sched/soft_domain.c:186:10: error: implicit declaration of function 'cpu_util_cfs' [-Werror,-Wimplicit-function-declaration] 186 | sum += cpu_util_cfs(cpu_rq(cpu)); | ^ kernel/sched/soft_domain.c:186:10: note: did you mean 'cpu_util_irq'? kernel/sched/sched.h:3118:29: note: 'cpu_util_irq' declared here 3118 | static inline unsigned long cpu_util_irq(struct rq *rq) | ^ kernel/sched/soft_domain.c:269:6: warning: variable 'cpu' set but not used [-Wunused-but-set-variable] 269 | int cpu; | ^ 1 warning and 1 error generated.
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for PGP_PRELOAD Depends on [n]: CRYPTO [=y] && ASYMMETRIC_KEY_TYPE [=n] Selected by [y]: - PGP_PRELOAD_PUBLIC_KEYS [=y] && CRYPTO [=y] vim +/cpu_util_cfs +186 kernel/sched/soft_domain.c 179 180 static unsigned long sum_util(struct cpumask *mask) 181 { 182 unsigned long sum = 0; 183 int cpu; 184 185 for_each_cpu(cpu, mask)
186 sum += cpu_util_cfs(cpu_rq(cpu)); 187 188 return sum; 189 } 190
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot