diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-08-12 03:34:41 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-12 19:57:59 +0200 |
commit | f36331770406b8e693a3d8d71ab3ccbbeabc7142 (patch) | |
tree | 99f50dccf6f980ea9eb8bf4605e38bd8b8010385 /lib/test_lockup.c | |
parent | lib/test_bitops: do the full test during module init (diff) | |
download | linux-f36331770406b8e693a3d8d71ab3ccbbeabc7142.tar.xz linux-f36331770406b8e693a3d8d71ab3ccbbeabc7142.zip |
lib/test_lockup.c: make symbol 'test_works' static
Fix sparse build warning:
lib/test_lockup.c:403:1: warning:
symbol '__pcpu_scope_test_works' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200707112252.9047-1-weiyongjun1@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/test_lockup.c')
-rw-r--r-- | lib/test_lockup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_lockup.c b/lib/test_lockup.c index ff26f36d729f..0f81252837b9 100644 --- a/lib/test_lockup.c +++ b/lib/test_lockup.c @@ -400,7 +400,7 @@ static void test_lockup(bool master) test_unlock(master, true); } -DEFINE_PER_CPU(struct work_struct, test_works); +static DEFINE_PER_CPU(struct work_struct, test_works); static void test_work_fn(struct work_struct *work) { |