All of lore.kernel.org
 help / color / mirror / Atom feed
* [tip: core/rcu] locktorture: Make function torture_percpu_rwsem_init() static
@ 2020-10-09  6:35 tip-bot2 for Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: tip-bot2 for Wei Yongjun @ 2020-10-09  6:35 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Wei Yongjun, Paul E. McKenney, x86, LKML

The following commit has been merged into the core/rcu branch of tip:

Commit-ID:     d49bed9abc3454bd123cbe974ecbeae119701b92
Gitweb:        https://git.kernel.org/tip/d49bed9abc3454bd123cbe974ecbeae119701b92
Author:        Wei Yongjun <weiyongjun1@huawei.com>
AuthorDate:    Fri, 03 Jul 2020 13:05:27 +08:00
Committer:     Paul E. McKenney <paulmck@kernel.org>
CommitterDate: Mon, 24 Aug 2020 18:45:32 -07:00

locktorture: Make function torture_percpu_rwsem_init() static

The sparse tool complains as follows:

kernel/locking/locktorture.c:569:6: warning:
 symbol 'torture_percpu_rwsem_init' was not declared. Should it be static?

And this function is not used outside of locktorture.c,
so this commit marks it static.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 kernel/locking/locktorture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c
index 9cfa5e8..62d215b 100644
--- a/kernel/locking/locktorture.c
+++ b/kernel/locking/locktorture.c
@@ -566,7 +566,7 @@ static struct lock_torture_ops rwsem_lock_ops = {
 #include <linux/percpu-rwsem.h>
 static struct percpu_rw_semaphore pcpu_rwsem;
 
-void torture_percpu_rwsem_init(void)
+static void torture_percpu_rwsem_init(void)
 {
 	BUG_ON(percpu_init_rwsem(&pcpu_rwsem));
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-09  6:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09  6:35 [tip: core/rcu] locktorture: Make function torture_percpu_rwsem_init() static tip-bot2 for Wei Yongjun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.