cred: Add forward declaration of init_user_ns in all cases.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 15 Nov 2011 03:29:17 +0000 (19:29 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 7 Apr 2012 23:55:50 +0000 (16:55 -0700)
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/cred.h

index adadf71a73271347a5c170df3b1c5490da073910..d12c4e475c15914d7a9a0193f198b870b1365b5c 100644 (file)
@@ -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