All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'?
Date: Tue, 11 Aug 2026 04:57:59 +0800	[thread overview]
Message-ID: <202608110436.QhdFI1Er-lkp@intel.com> (raw)

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

             reply	other threads:[~2026-08-10 20:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10 20:57 kernel test robot [this message]
2026-08-10 21:27 ` [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'? Paul E. McKenney

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=202608110436.QhdFI1Er-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=paulmck@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.