From: kernel test robot <lkp@intel.com>
To: Tejun Heo <tj@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [linux-next:master 3688/5998] kernel/sched/core.c:9284:36: error: 'struct task_group' has no member named 'scx_weight'
Date: Mon, 30 Jun 2025 05:28:07 +0800 [thread overview]
Message-ID: <202506300552.bnOSRwMk-lkp@intel.com> (raw)
Hi Tejun,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2aeda9592360c200085898a258c4754bfe879921
commit: 6e6558a6bc418f1478c5dc8609d03805364e0cb9 [3688/5998] sched_ext, sched/core: Factor out struct scx_task_group
config: sparc64-randconfig-001-20250630 (https://download.01.org/0day-ci/archive/20250630/202506300552.bnOSRwMk-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250630/202506300552.bnOSRwMk-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/202506300552.bnOSRwMk-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/sched/core.c: In function 'tg_weight':
>> kernel/sched/core.c:9284:36: error: 'struct task_group' has no member named 'scx_weight'
return sched_weight_from_cgroup(tg->scx_weight);
^~
kernel/sched/core.c:9286:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +9284 kernel/sched/core.c
2480c093130f64 kernel/sched/core.c Patrick Bellasi 2019-08-22 9277
e179e80c5d4fef kernel/sched/core.c Tejun Heo 2024-09-04 9278 #ifdef CONFIG_GROUP_SCHED_WEIGHT
41082c1d1d2bf6 kernel/sched/core.c Tejun Heo 2024-09-04 9279 static unsigned long tg_weight(struct task_group *tg)
41082c1d1d2bf6 kernel/sched/core.c Tejun Heo 2024-09-04 9280 {
052f1dc7eb0230 kernel/sched.c Peter Zijlstra 2008-02-13 9281 #ifdef CONFIG_FAIR_GROUP_SCHED
41082c1d1d2bf6 kernel/sched/core.c Tejun Heo 2024-09-04 9282 return scale_load_down(tg->shares);
8195136669661f kernel/sched/core.c Tejun Heo 2024-09-04 9283 #else
8195136669661f kernel/sched/core.c Tejun Heo 2024-09-04 @9284 return sched_weight_from_cgroup(tg->scx_weight);
8195136669661f kernel/sched/core.c Tejun Heo 2024-09-04 9285 #endif
41082c1d1d2bf6 kernel/sched/core.c Tejun Heo 2024-09-04 9286 }
41082c1d1d2bf6 kernel/sched/core.c Tejun Heo 2024-09-04 9287
:::::: The code at line 9284 was first introduced by commit
:::::: 8195136669661fdfe54e9a8923c33b31c92fc1da sched_ext: Add cgroup support
:::::: TO: Tejun Heo <tj@kernel.org>
:::::: CC: Tejun Heo <tj@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-06-29 21:28 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=202506300552.bnOSRwMk-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tj@kernel.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.