From: kernel test robot <lkp@intel.com>
To: elver@google.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [melver:ctx-analysis/dev 35/35] kernel/sched/core.c:3330:2: error: use of undeclared identifier '_T'
Date: Wed, 17 Dec 2025 07:41:54 +0800 [thread overview]
Message-ID: <202512170728.EOf5sSpM-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git ctx-analysis/dev
head: 6f3ab5bf905fd39deead834b14bd046dbe168533
commit: 6f3ab5bf905fd39deead834b14bd046dbe168533 [35/35] sched: Enable context analysis for core.c and fair.c
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20251217/202512170728.EOf5sSpM-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251217/202512170728.EOf5sSpM-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/202512170728.EOf5sSpM-lkp@intel.com/
All errors (new ones prefixed by >>):
>> kernel/sched/core.c:3330:2: error: use of undeclared identifier '_T'
3330 | guard(double_raw_spinlock)(&arg->src_task->pi_lock, &arg->dst_task->pi_lock);
| ^
include/linux/cleanup.h:419:2: note: expanded from macro 'guard'
419 | CLASS(_name, __UNIQUE_ID(guard))
| ^
include/linux/cleanup.h:300:3: note: expanded from macro 'CLASS'
300 | class_##_name##_constructor
| ^
<scratch space>:3:1: note: expanded from here
3 | class_double_raw_spinlock_constructor
| ^
kernel/sched/sched.h:3248:2: note: expanded from macro 'class_double_raw_spinlock_constructor'
3248 | WITH_LOCK_GUARD_2_ATTRS(double_raw_spinlock, _T1, _T2)
| ^
kernel/sched/sched.h:3090:30: note: expanded from macro 'WITH_LOCK_GUARD_2_ATTRS'
3090 | class_##_name##_constructor(_T), \
| ^
1 error generated.
vim +/_T +3330 kernel/sched/core.c
ac66f5477239eb Peter Zijlstra 2013-10-07 3318
ac66f5477239eb Peter Zijlstra 2013-10-07 3319 static int migrate_swap_stop(void *data)
ac66f5477239eb Peter Zijlstra 2013-10-07 3320 {
ac66f5477239eb Peter Zijlstra 2013-10-07 3321 struct migration_swap_arg *arg = data;
ac66f5477239eb Peter Zijlstra 2013-10-07 3322 struct rq *src_rq, *dst_rq;
ac66f5477239eb Peter Zijlstra 2013-10-07 3323
62694cd5132226 Peter Zijlstra 2015-10-09 3324 if (!cpu_active(arg->src_cpu) || !cpu_active(arg->dst_cpu))
62694cd5132226 Peter Zijlstra 2015-10-09 3325 return -EAGAIN;
62694cd5132226 Peter Zijlstra 2015-10-09 3326
ac66f5477239eb Peter Zijlstra 2013-10-07 3327 src_rq = cpu_rq(arg->src_cpu);
ac66f5477239eb Peter Zijlstra 2013-10-07 3328 dst_rq = cpu_rq(arg->dst_cpu);
ac66f5477239eb Peter Zijlstra 2013-10-07 3329
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 @3330 guard(double_raw_spinlock)(&arg->src_task->pi_lock, &arg->dst_task->pi_lock);
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 3331 guard(double_rq_lock)(src_rq, dst_rq);
62694cd5132226 Peter Zijlstra 2015-10-09 3332
ac66f5477239eb Peter Zijlstra 2013-10-07 3333 if (task_cpu(arg->dst_task) != arg->dst_cpu)
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 3334 return -EAGAIN;
ac66f5477239eb Peter Zijlstra 2013-10-07 3335
ac66f5477239eb Peter Zijlstra 2013-10-07 3336 if (task_cpu(arg->src_task) != arg->src_cpu)
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 3337 return -EAGAIN;
ac66f5477239eb Peter Zijlstra 2013-10-07 3338
3bd3706251ee8a Sebastian Andrzej Siewior 2019-04-23 3339 if (!cpumask_test_cpu(arg->dst_cpu, arg->src_task->cpus_ptr))
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 3340 return -EAGAIN;
ac66f5477239eb Peter Zijlstra 2013-10-07 3341
3bd3706251ee8a Sebastian Andrzej Siewior 2019-04-23 3342 if (!cpumask_test_cpu(arg->src_cpu, arg->dst_task->cpus_ptr))
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 3343 return -EAGAIN;
ac66f5477239eb Peter Zijlstra 2013-10-07 3344
ac66f5477239eb Peter Zijlstra 2013-10-07 3345 __migrate_swap_task(arg->src_task, arg->dst_cpu);
ac66f5477239eb Peter Zijlstra 2013-10-07 3346 __migrate_swap_task(arg->dst_task, arg->src_cpu);
ac66f5477239eb Peter Zijlstra 2013-10-07 3347
5bb76f1ddf2a7d Peter Zijlstra 2023-08-01 3348 return 0;
ac66f5477239eb Peter Zijlstra 2013-10-07 3349 }
ac66f5477239eb Peter Zijlstra 2013-10-07 3350
:::::: The code at line 3330 was first introduced by commit
:::::: 5bb76f1ddf2a7dd98f5a89d7755600ed1b4a7fcd sched: Simplify: migrate_swap_stop()
:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Peter Zijlstra <peterz@infradead.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-16 23:42 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=202512170728.EOf5sSpM-lkp@intel.com \
--to=lkp@intel.com \
--cc=elver@google.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.