mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 00:30:52 +07:00
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 <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: David Howells <dhowells@redhat.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/20200413082146.22737-1-yanaijie@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8977a27b66
commit
de83dbd97f
@ -82,7 +82,7 @@ EXPORT_SYMBOL_GPL(init_user_ns);
|
|||||||
#define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid))))
|
#define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid))))
|
||||||
|
|
||||||
static struct kmem_cache *uid_cachep;
|
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
|
* The uidhash_lock is mostly taken from process context, but it is
|
||||||
|
Loading…
Reference in New Issue
Block a user