Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e6bd8fa authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

cred: Add forward declaration of init_user_ns in all cases.

parent 74ba508f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -357,11 +357,11 @@ static inline void put_cred(const struct cred *_cred)
#define current_user()		(current_cred_xxx(user))
#define current_security()	(current_cred_xxx(security))

extern struct user_namespace init_user_ns;
#ifdef CONFIG_USER_NS
#define current_user_ns()	(current_cred_xxx(user_ns))
#define task_user_ns(task)	(task_cred_xxx((task), user_ns))
#else
extern struct user_namespace init_user_ns;
#define current_user_ns()	(&init_user_ns)
#define task_user_ns(task)	(&init_user_ns)
#endif