Subject: [RFC PATCH v2 04/21] kernel/user: export free_uid

From: Jonathan Lemon <[email-masked]>
Date: Mon, 27 Jul 2020 15:44:27 -0700

get_uid is a static inline which can be called from a module, so
free_uid should also be callable from a module.

Signed-off-by: Jonathan Lemon <[email-masked]>
---
 kernel/user.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/user.c b/kernel/user.c
index b1635d94a1f2..1e015abf0a2b 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -171,6 +171,7 @@ void free_uid(struct user_struct *up)
 	if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags))
 		free_user(up, flags);
 }
+EXPORT_SYMBOL_GPL(free_uid);
 
 struct user_struct *alloc_uid(kuid_t uid)
 {
-- 
2.24.1