diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2010-03-10 18:23:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 18:52:40 -0500 |
commit | 8467005da3ef6104b89a4cc5e9c9d9445b75565f (patch) | |
tree | e21eb9f439a9e17e66d90c691f400db3a5b0c54d /include/linux | |
parent | 13aa9a6b0f2371d2ce0de57c2ede62ab7a787157 (diff) |
nsproxy: remove INIT_NSPROXY()
Remove INIT_NSPROXY(), use C99 initializer.
Remove INIT_IPC_NS(), INIT_NET_NS() while I'm at it.
Note: headers trim will be done later, now it's quite pointless because
results will be invalidated by merge window.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/init_task.h | 8 | ||||
-rw-r--r-- | include/linux/ipc_namespace.h | 5 |
2 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index abec69b63d7e..b1ed1cd8e2a8 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -32,14 +32,6 @@ extern struct fs_struct init_fs; | |||
32 | } | 32 | } |
33 | 33 | ||
34 | extern struct nsproxy init_nsproxy; | 34 | extern struct nsproxy init_nsproxy; |
35 | #define INIT_NSPROXY(nsproxy) { \ | ||
36 | .pid_ns = &init_pid_ns, \ | ||
37 | .count = ATOMIC_INIT(1), \ | ||
38 | .uts_ns = &init_uts_ns, \ | ||
39 | .mnt_ns = NULL, \ | ||
40 | INIT_NET_NS(net_ns) \ | ||
41 | INIT_IPC_NS(ipc_ns) \ | ||
42 | } | ||
43 | 35 | ||
44 | #define INIT_SIGHAND(sighand) { \ | 36 | #define INIT_SIGHAND(sighand) { \ |
45 | .count = ATOMIC_INIT(1), \ | 37 | .count = ATOMIC_INIT(1), \ |
diff --git a/include/linux/ipc_namespace.h b/include/linux/ipc_namespace.h index 07baa38bce37..51952989ad42 100644 --- a/include/linux/ipc_namespace.h +++ b/include/linux/ipc_namespace.h | |||
@@ -62,11 +62,6 @@ extern struct ipc_namespace init_ipc_ns; | |||
62 | extern atomic_t nr_ipc_ns; | 62 | extern atomic_t nr_ipc_ns; |
63 | 63 | ||
64 | extern spinlock_t mq_lock; | 64 | extern spinlock_t mq_lock; |
65 | #if defined(CONFIG_POSIX_MQUEUE) || defined(CONFIG_SYSVIPC) | ||
66 | #define INIT_IPC_NS(ns) .ns = &init_ipc_ns, | ||
67 | #else | ||
68 | #define INIT_IPC_NS(ns) | ||
69 | #endif | ||
70 | 65 | ||
71 | #ifdef CONFIG_SYSVIPC | 66 | #ifdef CONFIG_SYSVIPC |
72 | extern int register_ipcns_notifier(struct ipc_namespace *); | 67 | extern int register_ipcns_notifier(struct ipc_namespace *); |