diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-07-02 19:56:50 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 04:38:36 +0300 |
commit | 9a52a574676f8d4aa55f69319231ce6c343b00bb (patch) | |
tree | 0274724dc2bbe10615fc71bef689c3c2de9c07f9 /kernel | |
parent | ee7035d29576dcb59b1191e5f609517cacab1e56 (diff) | |
download | linux-9a52a574676f8d4aa55f69319231ce6c343b00bb.tar.xz |
scftorture: Make symbol 'scf_torture_rand' static
The sparse tool complains as follows
kernel/scftorture.c:124:1: warning:
symbol '__pcpu_scope_scf_torture_rand' was not declared. Should it be static?
And this per-CPU variable is not used outside of scftorture.c,
so this commit marks it static.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/scftorture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 83496810fc48..9180de73e4e8 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -134,7 +134,7 @@ static atomic_t n_alloc_errs; static bool scfdone; static char *bangstr = ""; -DEFINE_TORTURE_RANDOM_PERCPU(scf_torture_rand); +static DEFINE_TORTURE_RANDOM_PERCPU(scf_torture_rand); // Print torture statistics. Caller must ensure serialization. static void scf_torture_stats_print(void) |