[paulmckrcu:dev.2026.03.24a 22/31] kernel/rcu/hazptrtorture.c:508:7: error: implicit declaration of function 'torture_sched_setaffinity'; did you mean 'torture_sched_set_normal'?
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/paulmckrcu/linux dev.2026.03.24a head: 8600e98cae614a9336f54a79ea5c152b14369076 commit: 16ad40d1089c5f212d7d87babc2376284f3bf244 [22/31] fixup! torture: Add a hazptrtorture.c stress test config: sparc64-randconfig-002-20260811 (https://download.01.org/0day-ci/archive/20260811/[email protected]/config) compiler: sparc64-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260811/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Note: the paulmckrcu/dev.2026.03.24a HEAD 8600e98cae614a9336f54a79ea5c152b14369076 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): kernel/rcu/hazptrtorture.c: In function 'hazptr_torture_preempt': >> kernel/rcu/hazptrtorture.c:508:7: error: implicit declaration of function 'torture_sched_setaffinity'; did you mean 'torture_sched_set_normal'? [-Werror=implicit-function-declaration] if (torture_sched_setaffinity(current->pid, cpumask_of(cpu), false)) ^~~~~~~~~~~~~~~~~~~~~~~~~ torture_sched_set_normal cc1: some warnings being treated as errors vim +508 kernel/rcu/hazptrtorture.c 26cca1d546bd55 Paul E. McKenney 2026-03-24 491 26cca1d546bd55 Paul E. McKenney 2026-03-24 492 // Randomly preempt online CPUs. 26cca1d546bd55 Paul E. McKenney 2026-03-24 493 static int hazptr_torture_preempt(void *unused) 26cca1d546bd55 Paul E. McKenney 2026-03-24 494 { 26cca1d546bd55 Paul E. McKenney 2026-03-24 495 int cpu = -1; 26cca1d546bd55 Paul E. McKenney 2026-03-24 496 DEFINE_TORTURE_RANDOM(rand); 26cca1d546bd55 Paul E. McKenney 2026-03-24 497 26cca1d546bd55 Paul E. McKenney 2026-03-24 498 schedule_timeout_idle(onoff_holdoff * HZ); 26cca1d546bd55 Paul E. McKenney 2026-03-24 499 do { 26cca1d546bd55 Paul E. McKenney 2026-03-24 500 // Wait for preempt_interval ms with up to 100us fuzz. 26cca1d546bd55 Paul E. McKenney 2026-03-24 501 torture_hrtimeout_ms(preempt_interval, 100, &rand); 26cca1d546bd55 Paul E. McKenney 2026-03-24 502 // Select online CPU. 26cca1d546bd55 Paul E. McKenney 2026-03-24 503 cpu = cpumask_next(cpu, cpu_online_mask); 26cca1d546bd55 Paul E. McKenney 2026-03-24 504 if (cpu >= nr_cpu_ids) 26cca1d546bd55 Paul E. McKenney 2026-03-24 505 cpu = cpumask_next(-1, cpu_online_mask); 26cca1d546bd55 Paul E. McKenney 2026-03-24 506 WARN_ON_ONCE(cpu >= nr_cpu_ids); 26cca1d546bd55 Paul E. McKenney 2026-03-24 507 // Move to that CPU, if can't do so, retry later. 26cca1d546bd55 Paul E. McKenney 2026-03-24 @508 if (torture_sched_setaffinity(current->pid, cpumask_of(cpu), false)) 26cca1d546bd55 Paul E. McKenney 2026-03-24 509 continue; 26cca1d546bd55 Paul E. McKenney 2026-03-24 510 // Preempt at high-ish priority, then reset to normal. 26cca1d546bd55 Paul E. McKenney 2026-03-24 511 sched_set_fifo(current); 26cca1d546bd55 Paul E. McKenney 2026-03-24 512 torture_sched_setaffinity(current->pid, cpu_present_mask, true); 26cca1d546bd55 Paul E. McKenney 2026-03-24 513 mdelay(preempt_duration); 26cca1d546bd55 Paul E. McKenney 2026-03-24 514 sched_set_normal(current, 0); 26cca1d546bd55 Paul E. McKenney 2026-03-24 515 stutter_wait("hazptr_torture_preempt"); 26cca1d546bd55 Paul E. McKenney 2026-03-24 516 } while (!torture_must_stop()); 26cca1d546bd55 Paul E. McKenney 2026-03-24 517 torture_kthread_stopping("hazptr_torture_preempt"); 26cca1d546bd55 Paul E. McKenney 2026-03-24 518 return 0; 26cca1d546bd55 Paul E. McKenney 2026-03-24 519 } 26cca1d546bd55 Paul E. McKenney 2026-03-24 520 :::::: The code at line 508 was first introduced by commit :::::: 26cca1d546bd557fdda0d8d6000dfcb80da759ab torture: Add a hazptrtorture.c stress test :::::: TO: Paul E. McKenney <[email protected]> :::::: CC: Paul E. McKenney <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki