From: Jason Yan Date: Thu, 4 Jun 2020 23:49:58 +0000 (-0700) Subject: user.c: make uidhash_table static X-Git-Tag: baikal/mips/sdk5.9~13507^2~55 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=5f5028ef81a9f8afa5a42fa158b5b42619ecf06a;p=kernel.git user.c: make uidhash_table static Fix the following sparse warning: kernel/user.c:85:19: warning: symbol 'uidhash_table' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan Signed-off-by: Andrew Morton Cc: David Howells Cc: Greg Kroah-Hartman Cc: Rasmus Villemoes Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20200413082146.22737-1-yanaijie@huawei.com Signed-off-by: Linus Torvalds --- diff --git a/kernel/user.c b/kernel/user.c index 5235d7f49982e..b1635d94a1f24 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -82,7 +82,7 @@ EXPORT_SYMBOL_GPL(init_user_ns); #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid)))) static struct kmem_cache *uid_cachep; -struct hlist_head uidhash_table[UIDHASH_SZ]; +static struct hlist_head uidhash_table[UIDHASH_SZ]; /* * The uidhash_lock is mostly taken from process context, but it is