OSDN Git Service

Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[uclinux-h8/linux.git] / include / linux / cred.h
index 8d70e13..257db64 100644 (file)
@@ -377,7 +377,10 @@ extern struct user_namespace init_user_ns;
 #ifdef CONFIG_USER_NS
 #define current_user_ns()      (current_cred_xxx(user_ns))
 #else
-#define current_user_ns()      (&init_user_ns)
+static inline struct user_namespace *current_user_ns(void)
+{
+       return &init_user_ns;
+}
 #endif