* [qais-yousef:overutilized-affinity 2/2] kernel/sched/fair.c:12694:9: error: implicit declaration of function 'set_task_max_allowed_capacity'
@ 2024-02-04 8:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-04 8:57 UTC (permalink / raw)
To: Qais Yousef; +Cc: oe-kbuild-all
tree: https://github.com/qais-yousef/linux overutilized-affinity
head: 22d6e6b5c20133897944454d2ca4924389d2da90
commit: 3c515086c41e884b65c919541cc1bb563be80ed6 [2/2] sched/fair: Check a task has a fitting cpu when updating misfit
config: i386-buildonly-randconfig-002-20240204 (https://download.01.org/0day-ci/archive/20240204/202402041657.yeJn6c06-lkp@intel.com/config)
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/20240204/202402041657.yeJn6c06-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/202402041657.yeJn6c06-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/sched/fair.c: In function 'task_fork_fair':
>> kernel/sched/fair.c:12694:9: error: implicit declaration of function 'set_task_max_allowed_capacity' [-Werror=implicit-function-declaration]
12694 | set_task_max_allowed_capacity(p);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:13150:6: warning: no previous prototype for 'free_fair_sched_group' [-Wmissing-prototypes]
13150 | void free_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:13152:5: warning: no previous prototype for 'alloc_fair_sched_group' [-Wmissing-prototypes]
13152 | int alloc_fair_sched_group(struct task_group *tg, struct task_group *parent)
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:13157:6: warning: no previous prototype for 'online_fair_sched_group' [-Wmissing-prototypes]
13157 | void online_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c:13159:6: warning: no previous prototype for 'unregister_fair_sched_group' [-Wmissing-prototypes]
13159 | void unregister_fair_sched_group(struct task_group *tg) { }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/set_task_max_allowed_capacity +12694 kernel/sched/fair.c
12678
12679 /*
12680 * called on fork with the child task as argument from the parent's context
12681 * - child not yet on the tasklist
12682 * - preemption disabled
12683 */
12684 static void task_fork_fair(struct task_struct *p)
12685 {
12686 struct sched_entity *se = &p->se, *curr;
12687 struct cfs_rq *cfs_rq;
12688 struct rq *rq = this_rq();
12689 struct rq_flags rf;
12690
12691 rq_lock(rq, &rf);
12692 update_rq_clock(rq);
12693
12694 set_task_max_allowed_capacity(p);
12695
12696 cfs_rq = task_cfs_rq(current);
12697 curr = cfs_rq->curr;
12698 if (curr)
12699 update_curr(cfs_rq);
12700 place_entity(cfs_rq, se, ENQUEUE_INITIAL);
12701 rq_unlock(rq, &rf);
12702 }
12703
--
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:[~2024-02-04 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-04 8:57 [qais-yousef:overutilized-affinity 2/2] kernel/sched/fair.c:12694:9: error: implicit declaration of function 'set_task_max_allowed_capacity' 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.