aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/pid_namespace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pid_namespace.h b/include/linux/pid_namespace.h
index b9a17e08ff0f..ddb9a4c95968 100644
--- a/include/linux/pid_namespace.h
+++ b/include/linux/pid_namespace.h
@@ -24,9 +24,10 @@ struct pid_namespace {
24 24
25extern struct pid_namespace init_pid_ns; 25extern struct pid_namespace init_pid_ns;
26 26
27static inline void get_pid_ns(struct pid_namespace *ns) 27static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)
28{ 28{
29 kref_get(&ns->kref); 29 kref_get(&ns->kref);
30 return ns;
30} 31}
31 32
32extern struct pid_namespace *copy_pid_ns(unsigned long flags, struct pid_namespace *ns); 33extern struct pid_namespace *copy_pid_ns(unsigned long flags, struct pid_namespace *ns);