* [PATCH] rcu/srcutree: make __call_srcu static
@ 2019-04-23 1:22 Jiang Biao
0 siblings, 0 replies; only message in thread
From: Jiang Biao @ 2019-04-23 1:22 UTC (permalink / raw)
To: paulmck, josh; +Cc: linux-kernel, benbjiang
__call_srcu() is only used in current file, just make it static.
Signed-off-by: Jiang Biao <benbjiang@tencent.com>
---
kernel/rcu/srcutree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index a60b8ba9e1ac..a2ade0c6cd87 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -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;
--
2.17.2 (Apple Git-113)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-23 1:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-23 1:22 [PATCH] rcu/srcutree: make __call_srcu static Jiang Biao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®