diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/rwsem.h> | 38 | #include <linux/rwsem.h> |
39 | #include <linux/nsproxy.h> | 39 | #include <linux/nsproxy.h> |
40 | #include <linux/mount.h> | 40 | #include <linux/mount.h> |
41 | #include <linux/ipc_namespace.h> | ||
41 | 42 | ||
42 | #include <asm/uaccess.h> | 43 | #include <asm/uaccess.h> |
43 | 44 | ||
@@ -96,6 +97,7 @@ static void do_shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *shp) | |||
96 | shm_destroy(ns, shp); | 97 | shm_destroy(ns, shp); |
97 | } | 98 | } |
98 | 99 | ||
100 | #ifdef CONFIG_IPC_NS | ||
99 | int shm_init_ns(struct ipc_namespace *ns) | 101 | int shm_init_ns(struct ipc_namespace *ns) |
100 | { | 102 | { |
101 | struct ipc_ids *ids; | 103 | struct ipc_ids *ids; |
@@ -133,6 +135,7 @@ void shm_exit_ns(struct ipc_namespace *ns) | |||
133 | kfree(ns->ids[IPC_SHM_IDS]); | 135 | kfree(ns->ids[IPC_SHM_IDS]); |
134 | ns->ids[IPC_SHM_IDS] = NULL; | 136 | ns->ids[IPC_SHM_IDS] = NULL; |
135 | } | 137 | } |
138 | #endif | ||
136 | 139 | ||
137 | void __init shm_init (void) | 140 | void __init shm_init (void) |
138 | { | 141 | { |