aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2020-08-11 18:34:41 -0700
committerLinus Torvalds <[email protected]>2020-08-12 10:57:59 -0700
commitf36331770406b8e693a3d8d71ab3ccbbeabc7142 (patch)
tree99f50dccf6f980ea9eb8bf4605e38bd8b8010385
parent403f177304354990c36d5a7d125bce2b39bcbe2c (diff)
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 <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--lib/test_lockup.c2
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)
{