From: kernel test robot <lkp@intel.com>
To: steven@liquorix.net
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zen:6.19/prjc 16/22] kernel/sched/alt_core.c:7352:23: warning: variable 't' used in loop condition not modified in loop body
Date: Tue, 07 Apr 2026 12:00:34 +0800 [thread overview]
Message-ID: <202604060045.IbOkdyeW-lkp@intel.com> (raw)
tree: https://github.com/zen-kernel/zen-kernel 6.19/prjc
head: 14ff03aebefa493a7d7ecfcbff66ded1147dba3e
commit: 929363bec03b29a52d29a1e3b16e8b631ad47d18 [16/22] sched/alt: [Sync] 81f70f0ee9ea sched/mmcid: Avoid full tasklist walks
config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20260406/202604060045.IbOkdyeW-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project c80443cd37b2e2788cba67ffa180a6331e5f0791)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260406/202604060045.IbOkdyeW-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/202604060045.IbOkdyeW-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/sched/alt_core.c:490:25: error: use of undeclared identifier 'paravirt_steal_rq_enabled'
490 | if (static_key_false((¶virt_steal_rq_enabled))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sched/alt_core.c:493:24: error: call to undeclared function 'paravirt_steal_clock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
493 | steal = prev_steal = paravirt_steal_clock(cpu_of(rq));
| ^
kernel/sched/alt_core.c:7352:38: error: no member named 'user_list' in 'struct mm_mm_cid'
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ~~~~~~~~~~ ^
include/linux/list.h:1167:31: note: expanded from macro 'hlist_for_each_entry'
1167 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~
include/linux/list.h:1156:12: note: expanded from macro 'hlist_entry_safe'
1156 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
kernel/sched/alt_core.c:7352:38: error: no member named 'user_list' in 'struct mm_mm_cid'
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ~~~~~~~~~~ ^
include/linux/list.h:1167:31: note: expanded from macro 'hlist_for_each_entry'
1167 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^~~~
include/linux/list.h:1156:28: note: expanded from macro 'hlist_entry_safe'
1156 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
kernel/sched/alt_core.c:7352:2: error: no member named 'node' in 'sched_mm_cid'
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ^ ~~~~~
include/linux/list.h:1167:13: note: expanded from macro 'hlist_for_each_entry'
1167 | for (pos = hlist_entry_safe((head)->first, typeof(*(pos)), member);\
| ^ ~~~~~~
include/linux/list.h:1157:15: note: expanded from macro 'hlist_entry_safe'
1157 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^ ~~~~~~
include/linux/list.h:1146:40: note: expanded from macro 'hlist_entry'
1146 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^ ~~~~~~
include/linux/container_of.h:24:21: note: expanded from macro 'container_of'
24 | ((type *)(__mptr - offsetof(type, member))); })
| ^ ~~~~~~
include/linux/stddef.h:16:32: note: expanded from macro 'offsetof'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^ ~~~~~~
kernel/sched/alt_core.c:7352:56: error: no member named 'node' in 'struct sched_mm_cid'
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/list.h:1169:37: note: expanded from macro 'hlist_for_each_entry'
1169 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:1156:12: note: expanded from macro 'hlist_entry_safe'
1156 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
kernel/sched/alt_core.c:7352:56: error: no member named 'node' in 'struct sched_mm_cid'
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
include/linux/list.h:1169:37: note: expanded from macro 'hlist_for_each_entry'
1169 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/list.h:1156:28: note: expanded from macro 'hlist_entry_safe'
1156 | ({ typeof(ptr) ____ptr = (ptr); \
| ^~~
kernel/sched/alt_core.c:7352:2: error: no member named 'node' in 'sched_mm_cid'
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ^ ~~~~~
include/linux/list.h:1169:13: note: expanded from macro 'hlist_for_each_entry'
1169 | pos = hlist_entry_safe((pos)->member.next, typeof(*(pos)), member))
| ^ ~~~~~~
include/linux/list.h:1157:15: note: expanded from macro 'hlist_entry_safe'
1157 | ____ptr ? hlist_entry(____ptr, type, member) : NULL; \
| ^ ~~~~~~
include/linux/list.h:1146:40: note: expanded from macro 'hlist_entry'
1146 | #define hlist_entry(ptr, type, member) container_of(ptr,type,member)
| ^ ~~~~~~
include/linux/container_of.h:24:21: note: expanded from macro 'container_of'
24 | ((type *)(__mptr - offsetof(type, member))); })
| ^ ~~~~~~
include/linux/stddef.h:16:32: note: expanded from macro 'offsetof'
16 | #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER)
| ^ ~~~~~~
>> kernel/sched/alt_core.c:7352:23: warning: variable 't' used in loop condition not modified in loop body [-Wfor-loop-analysis]
7352 | hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
| ^
kernel/sched/alt_core.c:7366:28: error: no member named 'node' in 'struct sched_mm_cid'
7366 | hlist_add_head(&t->mm_cid.node, &mm->mm_cid.user_list);
| ~~~~~~~~~ ^
kernel/sched/alt_core.c:7366:46: error: no member named 'user_list' in 'struct mm_mm_cid'
7366 | hlist_add_head(&t->mm_cid.node, &mm->mm_cid.user_list);
| ~~~~~~~~~~ ^
kernel/sched/alt_core.c:7424:28: error: no member named 'node' in 'struct sched_mm_cid'
7424 | hlist_del_init(&t->mm_cid.node);
| ~~~~~~~~~ ^
kernel/sched/alt_core.c:7567:30: error: no member named 'user_list' in 'struct mm_mm_cid'
7567 | INIT_HLIST_HEAD(&mm->mm_cid.user_list);
| ~~~~~~~~~~ ^
include/linux/list.h:945:32: note: expanded from macro 'INIT_HLIST_HEAD'
945 | #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
| ^~~
1 warning and 12 errors generated.
vim +/t +7352 kernel/sched/alt_core.c
7344
7345 static void mm_cid_fixup_tasks_to_cpus(void)
7346 {
7347 struct mm_struct *mm = current->mm;
7348 struct task_struct *t;
7349
7350 lockdep_assert_held(&mm->mm_cid.mutex);
7351
> 7352 hlist_for_each_entry(t, &mm->mm_cid.user_list, mm_cid.node) {
7353 /* Current has already transferred before invoking the fixup. */
7354 if (t != current)
7355 mm_cid_fixup_task_to_cpu(t, mm);
7356 }
7357
7358 mm_cid_complete_transit(mm, MM_CID_ONCPU);
7359 }
7360
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-07 4:01 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=202604060045.IbOkdyeW-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=steven@liquorix.net \
/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.