* [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'?
@ 2026-08-10 20:57 kernel test robot
2026-08-10 21:27 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-08-10 20:57 UTC (permalink / raw)
To: Paul E. McKenney; +Cc: oe-kbuild-all
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/202608110436.QhdFI1Er-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/20260811/202608110436.QhdFI1Er-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/202608110436.QhdFI1Er-lkp@intel.com/
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 <paulmck@kernel.org>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [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'?
2026-08-10 20:57 [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
@ 2026-08-10 21:27 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2026-08-10 21:27 UTC (permalink / raw)
To: kernel test robot; +Cc: oe-kbuild-all
On Tue, Aug 11, 2026 at 04:57:59AM +0800, kernel test robot wrote:
> 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/202608110436.QhdFI1Er-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/20260811/202608110436.QhdFI1Er-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/202608110436.QhdFI1Er-lkp@intel.com/
>
> 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
Thank you for the testing, but I have long since folded this commit into
the buggy one. Which *should* have taken care of this. *Should*. ;-)
Thanx, Paul
> 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 <paulmck@kernel.org>
> :::::: CC: Paul E. McKenney <paulmck@kernel.org>
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-10 21:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-10 20:57 [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
2026-08-10 21:27 ` Paul E. McKenney
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.