From: Wei Yongjun Date: Fri, 3 Jul 2020 05:05:27 +0000 (+0800) Subject: locktorture: Make function torture_percpu_rwsem_init() static X-Git-Tag: v5.10-rc1~84^2^2~3^3~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d49bed9abc3454bd123cbe974ecbeae119701b92;p=thirdparty%2Flinux.git 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 Signed-off-by: Paul E. McKenney --- diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index 9cfa5e89cff7f..62d215b2e39f6 100644 --- a/kernel/locking/locktorture.c +++ b/kernel/locking/locktorture.c @@ -566,7 +566,7 @@ static struct lock_torture_ops rwsem_lock_ops = { #include 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)); }