diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -82,6 +82,7 @@ | |||
82 | #include <linux/seq_file.h> | 82 | #include <linux/seq_file.h> |
83 | #include <linux/rwsem.h> | 83 | #include <linux/rwsem.h> |
84 | #include <linux/nsproxy.h> | 84 | #include <linux/nsproxy.h> |
85 | #include <linux/ipc_namespace.h> | ||
85 | 86 | ||
86 | #include <asm/uaccess.h> | 87 | #include <asm/uaccess.h> |
87 | #include "util.h" | 88 | #include "util.h" |
@@ -128,6 +129,7 @@ static void __sem_init_ns(struct ipc_namespace *ns, struct ipc_ids *ids) | |||
128 | ipc_init_ids(ids); | 129 | ipc_init_ids(ids); |
129 | } | 130 | } |
130 | 131 | ||
132 | #ifdef CONFIG_IPC_NS | ||
131 | int sem_init_ns(struct ipc_namespace *ns) | 133 | int sem_init_ns(struct ipc_namespace *ns) |
132 | { | 134 | { |
133 | struct ipc_ids *ids; | 135 | struct ipc_ids *ids; |
@@ -165,6 +167,7 @@ void sem_exit_ns(struct ipc_namespace *ns) | |||
165 | kfree(ns->ids[IPC_SEM_IDS]); | 167 | kfree(ns->ids[IPC_SEM_IDS]); |
166 | ns->ids[IPC_SEM_IDS] = NULL; | 168 | ns->ids[IPC_SEM_IDS] = NULL; |
167 | } | 169 | } |
170 | #endif | ||
168 | 171 | ||
169 | void __init sem_init (void) | 172 | void __init sem_init (void) |
170 | { | 173 | { |