aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/user.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/user.c b/kernel/user.c
index f0e561e6d085..f42a68e008fd 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -58,19 +58,17 @@ struct user_struct root_user = {
58/* 58/*
59 * These routines must be called with the uidhash spinlock held! 59 * These routines must be called with the uidhash spinlock held!
60 */ 60 */
61static inline void uid_hash_insert(struct user_struct *up, 61static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent)
62 struct hlist_head *hashent)
63{ 62{
64 hlist_add_head(&up->uidhash_node, hashent); 63 hlist_add_head(&up->uidhash_node, hashent);
65} 64}
66 65
67static inline void uid_hash_remove(struct user_struct *up) 66static void uid_hash_remove(struct user_struct *up)
68{ 67{
69 hlist_del_init(&up->uidhash_node); 68 hlist_del_init(&up->uidhash_node);
70} 69}
71 70
72static inline struct user_struct *uid_hash_find(uid_t uid, 71static struct user_struct *uid_hash_find(uid_t uid, struct hlist_head *hashent)
73 struct hlist_head *hashent)
74{ 72{
75 struct user_struct *user; 73 struct user_struct *user;
76 struct hlist_node *h; 74 struct hlist_node *h;