diff options
author | Christian Brauner <brauner@kernel.org> | 2025-09-24 13:33:59 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-09-25 09:23:54 +0200 |
commit | 4055526d35746ce8b04bfa5e14e14f28bb163186 (patch) | |
tree | 9d42503429528822e4cc7c2a38f2fd4bbcf10d4c /init/version-timestamp.c | |
parent | 10cdfcd37ade7ce736bc4a1927680f390a6b1f7b (diff) |
ns: move ns type into struct ns_common
It's misplaced in struct proc_ns_operations and ns->ops might be NULL if
the namespace is compiled out but we still want to know the type of the
namespace for the initial namespace struct.
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'init/version-timestamp.c')
-rw-r--r-- | init/version-timestamp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/version-timestamp.c b/init/version-timestamp.c index 376b7c856d4d..d071835121c2 100644 --- a/init/version-timestamp.c +++ b/init/version-timestamp.c @@ -8,6 +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), .name = { .sysname = UTS_SYSNAME, |