Commit f3633177 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Torvalds

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200707112252.9047-1-weiyongjun1@huawei.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 403f1773
...@@ -400,7 +400,7 @@ static void test_lockup(bool master) ...@@ -400,7 +400,7 @@ static void test_lockup(bool master)
test_unlock(master, true); 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) static void test_work_fn(struct work_struct *work)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment