From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [anolis-intel-cloud:devel-6.6 3/3] kernel/sched/fair.c:4175:33: error: implicit declaration of function 'cpu_load'; did you mean 'cpu_of'?
Date: Mon, 27 Oct 2025 09:52:29 +0800 [thread overview]
Message-ID: <202510270937.zyDN0a6M-lkp@intel.com> (raw)
Hi Peng,
FYI, the error/warning still remains.
tree: https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head: fa657921dedd55f9e25e42a54067b0615f308e5f
commit: a0afbf3c5d0386fa940ad3ee5e5cda8ad0e3eced [3/3] anolis: sched: add Numa Affine feature
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20251027/202510270937.zyDN0a6M-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251027/202510270937.zyDN0a6M-lkp@intel.com/reproduce)
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/202510270937.zyDN0a6M-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/sched/fair.c:4146:6: warning: no previous prototype for 'set_group_prefer_node' [-Wmissing-prototypes]
4146 | void set_group_prefer_node(struct task_group *tg)
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: In function 'set_group_prefer_node':
>> kernel/sched/fair.c:4175:33: error: implicit declaration of function 'cpu_load'; did you mean 'cpu_of'? [-Wimplicit-function-declaration]
4175 | load += cpu_load(cpu_rq(cpu));
| ^~~~~~~~
| cpu_of
kernel/sched/fair.c: At top level:
>> kernel/sched/fair.c:7324:22: error: conflicting types for 'cpu_load'; have 'long unsigned int(struct rq *)'
7324 | static unsigned long cpu_load(struct rq *rq)
| ^~~~~~~~
kernel/sched/fair.c:4175:33: note: previous implicit declaration of 'cpu_load' with type 'int()'
4175 | load += cpu_load(cpu_rq(cpu));
| ^~~~~~~~
vim +4175 kernel/sched/fair.c
4137
4138 static inline u64 cfs_rq_last_update_time(struct cfs_rq *cfs_rq)
4139 {
4140 return u64_u32_load_copy(cfs_rq->avg.last_update_time,
4141 cfs_rq->last_update_time_copy);
4142 }
4143 #ifdef CONFIG_FAIR_GROUP_SCHED
4144 DEFINE_PER_CPU(struct cpumask, cpus_allowed_alt);
4145 /* Decide which node for @tg to run on*/
4146 void set_group_prefer_node(struct task_group *tg)
4147 {
4148 int cpu, node;
4149 unsigned long min_load = ULONG_MAX, now = jiffies, load;
4150 static int prev_node;
4151 static unsigned long prev_jiffies;
4152
4153 /* Choose Round-Robin way with frequent call */
4154 if (now - prev_jiffies < HZ) {
4155 prev_jiffies = now;
4156
4157 prev_node = next_online_node(prev_node);
4158 if (prev_node >= 0 && prev_node < MAX_NUMNODES) {
4159 tg->prefer_node = prev_node;
4160 return;
4161 }
4162
4163 prev_node = first_online_node;
4164 tg->prefer_node = prev_node;
4165 return;
4166 }
4167
4168 prev_jiffies = now;
4169
4170 /* find the idlest node */
4171 prev_node = first_online_node;
4172 for_each_online_node(node) {
4173 load = ULONG_MAX;
4174 for_each_cpu(cpu, cpumask_of_node(node))
> 4175 load += cpu_load(cpu_rq(cpu));
4176 if (load < min_load) {
4177 min_load = load;
4178 prev_node = node;
4179 }
4180 }
4181
4182 tg->prefer_node = prev_node;
4183 }
4184
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-10-27 1:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202510270937.zyDN0a6M-lkp@intel.com \
--to=lkp@intel.com \
--cc=aubrey.li@linux.intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.