summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-06-05 02:50:14 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-06-05 05:06:25 +0300
commit02223e36f315be7e647aa4fbb09a8f8b5a2fa43e (patch)
tree43a5bfca5732f1fb385f0506d1beed7e4d8aeea0 /lib
parent07887358993d48571f0f3a25cfce715564b35587 (diff)
downloadlinux-02223e36f315be7e647aa4fbb09a8f8b5a2fa43e.tar.xz
lib/test_lockup.c: make test_inode static
Fix the following sparse warning: lib/test_lockup.c:145:14: warning: symbol 'test_inode' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200417074021.46411-1-yanaijie@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-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 ea09ca335b21..419fbaceba73 100644
--- a/lib/test_lockup.c
+++ b/lib/test_lockup.c
@@ -142,7 +142,7 @@ module_param(reallocate_pages, bool, 0400);
MODULE_PARM_DESC(reallocate_pages, "free and allocate pages between iterations");
struct file *test_file;
-struct inode *test_inode;
+static struct inode *test_inode;
static char test_file_path[256];
module_param_string(file_path, test_file_path, sizeof(test_file_path), 0400);
MODULE_PARM_DESC(file_path, "file path to test");