From: kernel test robot <lkp@intel.com>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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
Date: Thu, 3 Mar 2022 07:32:51 +0800 [thread overview]
Message-ID: <202203030729.s3AJ15rL-lkp@intel.com> (raw)
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@intel.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@kernel.org>
:::::: CC: Paul E. McKenney <paulmck@kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-03-02 23:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202203030729.s3AJ15rL-lkp@intel.com \
--to=lkp@intel.com \
--cc=frederic@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox