diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-08-11 18:34:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-12 10:57:59 -0700 |
commit | f36331770406b8e693a3d8d71ab3ccbbeabc7142 (patch) | |
tree | 99f50dccf6f980ea9eb8bf4605e38bd8b8010385 /lib | |
parent | 403f177304354990c36d5a7d125bce2b39bcbe2c (diff) | |
download | lwn-f36331770406b8e693a3d8d71ab3ccbbeabc7142.tar.gz lwn-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')
-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) { |