* [peterz-queue:sched/flat 61/61] kernel/sched/fair.c:9922:20: warning: 'cfs_rq' is used uninitialized
@ 2026-06-02 20:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-02 20:49 UTC (permalink / raw)
To: Peter Zijlstra (Intel); +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/flat
head: a5d37500c54a90dc76e3e3e1cd3b0194b06d5461
commit: a5d37500c54a90dc76e3e3e1cd3b0194b06d5461 [61/61] sched/eevdf: Move to a single runqueue
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260602/202606022233.nMLuVHVG-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/20260602/202606022233.nMLuVHVG-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/202606022233.nMLuVHVG-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/sched/fair.c: In function 'pick_task_fair':
>> kernel/sched/fair.c:9922:20: warning: 'cfs_rq' is used uninitialized [-Wuninitialized]
9922 | if (!cfs_rq->h_nr_queued)
| ~~~~~~^~~~~~~~~~~~~
kernel/sched/fair.c:9917:24: note: 'cfs_rq' was declared here
9917 | struct cfs_rq *cfs_rq;
| ^~~~~~
vim +/cfs_rq +9922 kernel/sched/fair.c
9912
9913 struct task_struct *pick_task_fair(struct rq *rq, struct rq_flags *rf)
9914 __must_hold(__rq_lockp(rq))
9915 {
9916 struct sched_entity *se;
9917 struct cfs_rq *cfs_rq;
9918 struct task_struct *p;
9919 int new_tasks;
9920
9921 again:
> 9922 if (!cfs_rq->h_nr_queued)
9923 goto idle;
9924
9925 /* Might not have done put_prev_entity() */
9926 if (cfs_rq->curr && cfs_rq->curr->on_rq)
9927 update_curr(cfs_rq);
9928
9929 se = pick_next_entity(rq, true);
9930 if (!se)
9931 goto again;
9932
9933 p = task_of(se);
9934 return p;
9935
9936 idle:
9937 new_tasks = sched_balance_newidle(rq, rf);
9938 if (new_tasks < 0)
9939 return RETRY_TASK;
9940 if (new_tasks > 0)
9941 goto again;
9942 return NULL;
9943 }
9944
--
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:[~2026-06-02 20:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-02 20:49 [peterz-queue:sched/flat 61/61] kernel/sched/fair.c:9922:20: warning: 'cfs_rq' is used uninitialized 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.