aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJiang Biao <benbjiang@tencent.com>2019-04-23 09:22:56 +0800
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-05-28 09:03:35 -0700
commit11b000457f4638cf2a9e6794d31636d2d3174842 (patch)
tree87b86d1497156cef7dbe98150d635bd4f6e14bc7 /kernel
parent056b89e7e699742cc060ce722d3f26effe51b4aa (diff)
downloadtip-11b000457f4638cf2a9e6794d31636d2d3174842.tar.gz
tip-11b000457f4638cf2a9e6794d31636d2d3174842.tar.xz
tip-11b000457f4638cf2a9e6794d31636d2d3174842.zip
rcu: Make __call_srcu static
Because __call_srcu() is not used outside kernel/rcu/srcutree.c, this commit makes it static. Signed-off-by: Jiang Biao <benbjiang@tencent.com> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rcu/srcutree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index 2ded2614a2f4..cf0e886314f2 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -831,8 +831,8 @@ static void srcu_leak_callback(struct rcu_head *rhp)
* srcu_read_lock(), and srcu_read_unlock() that are all passed the same
* srcu_struct structure.
*/
-void __call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
- rcu_callback_t func, bool do_norm)
+static void __call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
+ rcu_callback_t func, bool do_norm)
{
unsigned long flags;
int idx;