Skip to contentSkip to conversation

rcu/srcutree: make __call_srcu static

PATCH New Jiang Biao 1 participant 1 message Apr 23, 2019 Sleepable read-copy update (SRCU)

lore
Share & tools
lore

Jiang Biao

author
#0 lore raw

PATCH 1/1 rcu/srcutree: make __call_srcu static

__call_srcu() is only used in current file, just make it static.

---
 kernel/rcu/srcutree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/srcutree.c +1 -1
index a60b8ba9e1ac..a2ade0c6cd87 100644
@@ -835,7 +835,7 @@ 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,
+static void __call_srcu(struct srcu_struct *ssp, struct rcu_head *rhp,
 		 rcu_callback_t func, bool do_norm)
 {
 	unsigned long flags;
Signature · 1 line
2.17.2 (Apple Git-113)