The patch titled Subject: user.c: make uidhash_table static has been added to the -mm tree. Its filename is userc-make-uidhash_table-static.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/userc-make-uidhash_table-static.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/userc-make-uidhash_table-static.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jason Yan <yanaijie@xxxxxxxxxx> Subject: 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? Link: http://lkml.kernel.org/r/20200413082146.22737-1-yanaijie@xxxxxxxxxx Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx> Cc: David Howells <dhowells@xxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/user.c~userc-make-uidhash_table-static +++ a/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 _ Patches currently in -mm which might be from yanaijie@xxxxxxxxxx are userc-make-uidhash_table-static.patch