diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-11-03 16:16:01 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-03 17:41:16 +0100 |
| commit | 0b1765830cf9c652f010e9f5df7d9fa435a2f930 (patch) | |
| tree | b29b2d07920999e3b32e76ac34f2951fcd7b255e /ipc | |
| parent | d915fe20e5cba4bd50e41e792a32dcddc7490e25 (diff) | |
| download | net-0b1765830cf9c652f010e9f5df7d9fa435a2f930.tar.gz | |
ns: use NS_COMMON_INIT() for all namespaces
Now that we have a common initializer use it for all static namespaces.
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/msgutil.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ipc/msgutil.c b/ipc/msgutil.c index 7a03f6d03de3ad..55a908ec0674c6 100644 --- a/ipc/msgutil.c +++ b/ipc/msgutil.c @@ -27,13 +27,8 @@ DEFINE_SPINLOCK(mq_lock); * and not CONFIG_IPC_NS. */ struct ipc_namespace init_ipc_ns = { - .ns.__ns_ref = REFCOUNT_INIT(1), + .ns = NS_COMMON_INIT(init_ipc_ns, 1), .user_ns = &init_user_ns, - .ns.inum = ns_init_inum(&init_ipc_ns), -#ifdef CONFIG_IPC_NS - .ns.ops = &ipcns_operations, -#endif - .ns.ns_type = ns_common_type(&init_ipc_ns), }; struct msg_msgseg { |
