diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-03 07:05:27 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 03:45:32 +0200 |
commit | d49bed9abc3454bd123cbe974ecbeae119701b92 (patch) | |
tree | 269b777f559b76b00ca7d1bba316a6e576068c8d /kernel/locking/locktorture.c | |
parent | torture: document --allcpus argument added to the kvm.sh script (diff) | |
download | linux-d49bed9abc3454bd123cbe974ecbeae119701b92.tar.xz linux-d49bed9abc3454bd123cbe974ecbeae119701b92.zip |
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>
Diffstat (limited to 'kernel/locking/locktorture.c')
-rw-r--r-- | kernel/locking/locktorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index 9cfa5e89cff7..62d215b2e39f 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)); } |