aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index d65e285b7e30..84c701fe5004 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -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
131int sem_init_ns(struct ipc_namespace *ns) 133int 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
169void __init sem_init (void) 172void __init sem_init (void)
170{ 173{