* [anolis-intel-cloud:devel-6.6 50/50] kernel/sched/fair.c:4146:6: warning: no previous prototype for 'set_group_prefer_node'
@ 2025-12-14 2:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-12-14 2:11 UTC (permalink / raw)
To: aubrey.li; +Cc: oe-kbuild-all
tree: https://gitee.com/anolis/intel-cloud-kernel.git devel-6.6
head: 7c285f40a964b427534f3dab33b104ee9cab6245
commit: a0afbf3c5d0386fa940ad3ee5e5cda8ad0e3eced [50/50] anolis: sched: add Numa Affine feature
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251214/202512140342.7G3GhhrT-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/20251214/202512140342.7G3GhhrT-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/202512140342.7G3GhhrT-lkp@intel.com/
All warnings (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)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/set_group_prefer_node +4146 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-14 2:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-14 2:11 [anolis-intel-cloud:devel-6.6 50/50] kernel/sched/fair.c:4146:6: warning: no previous prototype for 'set_group_prefer_node' kernel test robot
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.