[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202106142012.xHdv2QFp-lkp@intel.com>
Date: Mon, 14 Jun 2021 20:19:16 +0800
From: kernel test robot <lkp@...el.com>
To: Ingo Molnar <mingo@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
x86@...nel.org
Subject: [tip:tmp.tmp2 117/364] kernel/torture.c:541:3: error: implicit
declaration of function 'set_cpus_allowed_ptr'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: e124b87bf88e97965935e8fa0fd3f9fbf2cd39b2 [117/364] sched/headers: Move CPU affinity APIs from <linux/sched.h> to <linux/sched/affinity.h>
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=e124b87bf88e97965935e8fa0fd3f9fbf2cd39b2
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout e124b87bf88e97965935e8fa0fd3f9fbf2cd39b2
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
kernel/torture.c: In function 'torture_shuffle_tasks':
>> kernel/torture.c:541:3: error: implicit declaration of function 'set_cpus_allowed_ptr' [-Werror=implicit-function-declaration]
541 | set_cpus_allowed_ptr(stp->st_t, shuffle_tmp_mask);
| ^~~~~~~~~~~~~~~~~~~~
kernel/torture.c: In function 'stutter_wait':
kernel/torture.c:728:2: error: implicit declaration of function 'cond_resched_tasks_rcu_qs' [-Werror=implicit-function-declaration]
728 | cond_resched_tasks_rcu_qs();
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/torture.c:741:5: error: implicit declaration of function 'cond_resched'; did you mean 'need_resched'? [-Werror=implicit-function-declaration]
741 | cond_resched();
| ^~~~~~~~~~~~
| need_resched
cc1: some warnings being treated as errors
--
mm/page_alloc.c: In function 'deferred_init_memmap':
>> mm/page_alloc.c:1981:3: error: implicit declaration of function 'set_cpus_allowed_ptr'; did you mean 'set_mems_allowed'? [-Werror=implicit-function-declaration]
1981 | set_cpus_allowed_ptr(current, cpumask);
| ^~~~~~~~~~~~~~~~~~~~
| set_mems_allowed
mm/page_alloc.c: At top level:
mm/page_alloc.c:3652:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes]
3652 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/set_cpus_allowed_ptr +541 kernel/torture.c
3808dc9fab0591 Paul E. McKenney 2014-01-28 514
3808dc9fab0591 Paul E. McKenney 2014-01-28 515 /* Shuffle tasks such that we allow shuffle_idle_cpu to become idle.
3808dc9fab0591 Paul E. McKenney 2014-01-28 516 * A special case is when shuffle_idle_cpu = -1, in which case we allow
3808dc9fab0591 Paul E. McKenney 2014-01-28 517 * the tasks to run on all CPUs.
3808dc9fab0591 Paul E. McKenney 2014-01-28 518 */
3808dc9fab0591 Paul E. McKenney 2014-01-28 519 static void torture_shuffle_tasks(void)
3808dc9fab0591 Paul E. McKenney 2014-01-28 520 {
3808dc9fab0591 Paul E. McKenney 2014-01-28 521 struct shuffle_task *stp;
3808dc9fab0591 Paul E. McKenney 2014-01-28 522
3808dc9fab0591 Paul E. McKenney 2014-01-28 523 cpumask_setall(shuffle_tmp_mask);
3808dc9fab0591 Paul E. McKenney 2014-01-28 524 get_online_cpus();
3808dc9fab0591 Paul E. McKenney 2014-01-28 525
3808dc9fab0591 Paul E. McKenney 2014-01-28 526 /* No point in shuffling if there is only one online CPU (ex: UP) */
3808dc9fab0591 Paul E. McKenney 2014-01-28 527 if (num_online_cpus() == 1) {
3808dc9fab0591 Paul E. McKenney 2014-01-28 528 put_online_cpus();
3808dc9fab0591 Paul E. McKenney 2014-01-28 529 return;
3808dc9fab0591 Paul E. McKenney 2014-01-28 530 }
3808dc9fab0591 Paul E. McKenney 2014-01-28 531
3808dc9fab0591 Paul E. McKenney 2014-01-28 532 /* Advance to the next CPU. Upon overflow, don't idle any CPUs. */
3808dc9fab0591 Paul E. McKenney 2014-01-28 533 shuffle_idle_cpu = cpumask_next(shuffle_idle_cpu, shuffle_tmp_mask);
3808dc9fab0591 Paul E. McKenney 2014-01-28 534 if (shuffle_idle_cpu >= nr_cpu_ids)
3808dc9fab0591 Paul E. McKenney 2014-01-28 535 shuffle_idle_cpu = -1;
5ed63b199c5b58 Iulia Manda 2014-03-17 536 else
3808dc9fab0591 Paul E. McKenney 2014-01-28 537 cpumask_clear_cpu(shuffle_idle_cpu, shuffle_tmp_mask);
3808dc9fab0591 Paul E. McKenney 2014-01-28 538
3808dc9fab0591 Paul E. McKenney 2014-01-28 539 mutex_lock(&shuffle_task_mutex);
3808dc9fab0591 Paul E. McKenney 2014-01-28 540 list_for_each_entry(stp, &shuffle_task_list, st_l)
3808dc9fab0591 Paul E. McKenney 2014-01-28 @541 set_cpus_allowed_ptr(stp->st_t, shuffle_tmp_mask);
3808dc9fab0591 Paul E. McKenney 2014-01-28 542 mutex_unlock(&shuffle_task_mutex);
3808dc9fab0591 Paul E. McKenney 2014-01-28 543
3808dc9fab0591 Paul E. McKenney 2014-01-28 544 put_online_cpus();
3808dc9fab0591 Paul E. McKenney 2014-01-28 545 }
3808dc9fab0591 Paul E. McKenney 2014-01-28 546
:::::: The code at line 541 was first introduced by commit
:::::: 3808dc9fab05913060626d7f0edd0f195cb9dcab rcutorture: Abstract torture_shuffle()
:::::: TO: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (41434 bytes)
Powered by blists - more mailing lists