From: kernel test robot <lkp@intel.com>
To: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:sched/flat 61/61] kernel/sched/fair.c:9922:20: warning: 'cfs_rq' is used uninitialized
Date: Tue, 02 Jun 2026 22:49:39 +0200 [thread overview]
Message-ID: <202606022233.nMLuVHVG-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-02 20:50 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=202606022233.nMLuVHVG-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=peterz@infradead.org \
/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.