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 /init/version-timestamp.c | |
| parent | d915fe20e5cba4bd50e41e792a32dcddc7490e25 (diff) | |
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 'init/version-timestamp.c')
| -rw-r--r-- | init/version-timestamp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/init/version-timestamp.c b/init/version-timestamp.c index d071835121c2..56ded64fdfe4 100644 --- a/init/version-timestamp.c +++ b/init/version-timestamp.c @@ -8,8 +8,7 @@ #include <linux/utsname.h> struct uts_namespace init_uts_ns = { - .ns.ns_type = ns_common_type(&init_uts_ns), - .ns.__ns_ref = REFCOUNT_INIT(2), + .ns = NS_COMMON_INIT(init_uts_ns, 2), .name = { .sysname = UTS_SYSNAME, .nodename = UTS_NODENAME, @@ -19,10 +18,6 @@ struct uts_namespace init_uts_ns = { .domainname = UTS_DOMAINNAME, }, .user_ns = &init_user_ns, - .ns.inum = ns_init_inum(&init_uts_ns), -#ifdef CONFIG_UTS_NS - .ns.ops = &utsns_operations, -#endif }; /* FIXED STRINGS! Don't touch! */ |