Thread (8 messages) 8 messages, 3 authors, 2025-09-24
STALE297d

[PATCH 3/3] ns: drop assert

From: Christian Brauner <brauner@kernel.org>
Date: 2025-09-24 11:34:24
Also in: cgroups, linux-fsdevel
Subsystem: the rest · Maintainer: Linus Torvalds

Otherwise we warn when e.g., no namespaces are configured but the
initial namespace for is still around.

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
 kernel/nscommon.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/kernel/nscommon.c b/kernel/nscommon.c
index 92c9df1e8774..c1fb2bad6d72 100644
--- a/kernel/nscommon.c
+++ b/kernel/nscommon.c
@@ -46,8 +46,6 @@ static void ns_debug(struct ns_common *ns, const struct proc_ns_operations *ops)
 		VFS_WARN_ON_ONCE(ops != &utsns_operations);
 		break;
 #endif
-	default:
-		VFS_WARN_ON_ONCE(true);
 	}
 }
 #endif
-- 
2.47.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help