rcu: Make __call_srcu static
authorJiang Biao <benbjiang@tencent.com>
Tue, 23 Apr 2019 01:22:56 +0000 (09:22 +0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 28 May 2019 16:03:35 +0000 (09:03 -0700)
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>
kernel/rcu/srcutree.c

index 2ded2614a2f43464459397a9e1b61957f16d9240..cf0e886314f2e5ffa8f06a8edf5824d9dd867590 100644 (file)
@@ -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;