All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [tip:tmp.tmp2 117/364] kernel/torture.c:541:3: error: implicit declaration of function 'set_cpus_allowed_ptr'
Date: Mon, 14 Jun 2021 20:19:16 +0800	[thread overview]
Message-ID: <202106142012.xHdv2QFp-lkp@intel.com> (raw)

[-- 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 --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, x86@kernel.org
Subject: [tip:tmp.tmp2 117/364] kernel/torture.c:541:3: error: implicit declaration of function 'set_cpus_allowed_ptr'
Date: Mon, 14 Jun 2021 20:19:16 +0800	[thread overview]
Message-ID: <202106142012.xHdv2QFp-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-06-14 12:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-14 12:19 kernel test robot [this message]
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

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=202106142012.xHdv2QFp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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.