All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip:tmp.tmp2 117/364] kernel/torture.c:541:3: error: implicit declaration of function 'set_cpus_allowed_ptr'
@ 2021-06-14 12:19 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-14 12:19 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, x86

[-- Attachment #1: Type: text/plain, Size: 5386 bytes --]

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@intel.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@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41434 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:tmp.tmp2 117/364] kernel/torture.c:541:3: error: implicit declaration of function 'set_cpus_allowed_ptr'
@ 2021-06-14 12:19 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-14 12:19 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5477 bytes --]

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@intel.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@linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 41434 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-14 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 12:19 [tip:tmp.tmp2 117/364] kernel/torture.c:541:3: error: implicit declaration of function 'set_cpus_allowed_ptr' kernel test robot
2021-06-14 12:19 ` kernel test robot

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.