From: Eric W. Biederman Date: Tue, 15 Nov 2011 03:29:17 +0000 (-0800) Subject: cred: Add forward declaration of init_user_ns in all cases. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e6bd8fadd1216f50468f965d0308f45e5109ced;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cred: Add forward declaration of init_user_ns in all cases. Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- diff --git a/include/linux/cred.h b/include/linux/cred.h index adadf71a7327..d12c4e475c15 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h @@ -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