From: Wei Yongjun Date: Wed, 12 Aug 2020 01:34:41 +0000 (-0700) Subject: lib/test_lockup.c: make symbol 'test_works' static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f36331770406b8e693a3d8d71ab3ccbbeabc7142;p=linux.git 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 Signed-off-by: Wei Yongjun Signed-off-by: Andrew Morton Link: http://lkml.kernel.org/r/20200707112252.9047-1-weiyongjun1@huawei.com Signed-off-by: Linus Torvalds --- diff --git a/lib/test_lockup.c b/lib/test_lockup.c index ff26f36d729fa..0f81252837b9c 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) {