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>
This commit is contained in:
Wei Yongjun 2020-08-11 18:34:41 -07:00 committed by Linus Torvalds
parent 403f177304
commit f363317704
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{