Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

nstree: decouple from ns_common header

Foward declare struct ns_common and remove the include of ns_common.h.
We want ns_common.h to possibly include nstree structures but not the
other way around.

Link: https://patch.msgid.link/20251110-work-namespace-nstree-fixes-v1-2-e8a9264e0fb9@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

+2 -1
+2 -1
include/linux/nstree.h
··· 3 3 #ifndef _LINUX_NSTREE_H 4 4 #define _LINUX_NSTREE_H 5 5 6 - #include <linux/ns_common.h> 7 6 #include <linux/nsproxy.h> 8 7 #include <linux/rbtree.h> 9 8 #include <linux/seqlock.h> 10 9 #include <linux/rculist.h> 11 10 #include <linux/cookie.h> 12 11 #include <uapi/linux/nsfs.h> 12 + 13 + struct ns_common; 13 14 14 15 extern struct ns_tree cgroup_ns_tree; 15 16 extern struct ns_tree ipc_ns_tree;