lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203030729.s3AJ15rL-lkp@intel.com>
Date:   Thu, 3 Mar 2022 07:32:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Frederic Weisbecker <frederic@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [frederic-dynticks:rcu/context-tracking 14/19]
 kernel/rcu/tree_plugin.h:932:13: error: static declaration of
 'rcu_preempt_deferred_qs' follows non-static declaration

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git rcu/context-tracking
head:   e4eaff86ec91c1cbde9a113cf5232dac9f897337
commit: 5a91f02835a27bd066154ab87408505806710e19 [14/19] rcu/context-tracking: Move RCU-dynticks internal functions to context_tracking
config: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20220303/202203030729.s3AJ15rL-lkp@intel.com/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/frederic/linux-dynticks.git/commit/?id=5a91f02835a27bd066154ab87408505806710e19
        git remote add frederic-dynticks https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
        git fetch --no-tags frederic-dynticks rcu/context-tracking
        git checkout 5a91f02835a27bd066154ab87408505806710e19
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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 >>):

   In file included from kernel/rcu/tree.c:4457:
>> kernel/rcu/tree_plugin.h:932:13: error: static declaration of 'rcu_preempt_deferred_qs' follows non-static declaration
     932 | static void rcu_preempt_deferred_qs(struct task_struct *t)
         |             ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/rcupdate.h:227,
                    from include/linux/rcupdate_wait.h:9,
                    from kernel/rcu/tree.c:25:
   include/linux/rcutree.h:63:6: note: previous declaration of 'rcu_preempt_deferred_qs' was here
      63 | void rcu_preempt_deferred_qs(struct task_struct *t);
         |      ^~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/rcu/tree.c:4457:
   kernel/rcu/tree_plugin.h:932:13: warning: 'rcu_preempt_deferred_qs' defined but not used [-Wunused-function]
     932 | static void rcu_preempt_deferred_qs(struct task_struct *t)
         |             ^~~~~~~~~~~~~~~~~~~~~~~


vim +/rcu_preempt_deferred_qs +932 kernel/rcu/tree_plugin.h

790da248978a072 Paul E. McKenney 2021-09-29  927  
790da248978a072 Paul E. McKenney 2021-09-29  928  // Except that we do need to respond to a request by an expedited grace
790da248978a072 Paul E. McKenney 2021-09-29  929  // period for a quiescent state from this CPU.  Note that requests from
790da248978a072 Paul E. McKenney 2021-09-29  930  // tasks are handled when removing the task from the blocked-tasks list
790da248978a072 Paul E. McKenney 2021-09-29  931  // below.
790da248978a072 Paul E. McKenney 2021-09-29 @932  static void rcu_preempt_deferred_qs(struct task_struct *t)
790da248978a072 Paul E. McKenney 2021-09-29  933  {
790da248978a072 Paul E. McKenney 2021-09-29  934  	struct rcu_data *rdp = this_cpu_ptr(&rcu_data);
790da248978a072 Paul E. McKenney 2021-09-29  935  
790da248978a072 Paul E. McKenney 2021-09-29  936  	if (rdp->cpu_no_qs.b.exp)
790da248978a072 Paul E. McKenney 2021-09-29  937  		rcu_report_exp_rdp(rdp);
790da248978a072 Paul E. McKenney 2021-09-29  938  }
3e31009898699df Paul E. McKenney 2018-06-21  939  

:::::: The code at line 932 was first introduced by commit
:::::: 790da248978a0722d92d1471630c881704f7eb0d rcu: Make idle entry report expedited quiescent states

:::::: TO: Paul E. McKenney <paulmck@...nel.org>
:::::: CC: Paul E. McKenney <paulmck@...nel.org>

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

Powered by blists - more mailing lists