From: Jason Yan Date: Thu, 4 Jun 2020 23:49:58 +0000 (-0700) Subject: user.c: make uidhash_table static X-Git-Tag: v5.10.7~2446^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de83dbd97f173650a602c5e356025b732173ecc4;p=platform%2Fkernel%2Flinux-rpi.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 5235d7f..b1635d9 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