[PATCH 1/3] cgroup: add missing ns_common include

Christian Brauner posted 3 patches 1 week, 2 days ago
[PATCH 1/3] cgroup: add missing ns_common include
Posted by Christian Brauner 1 week, 2 days ago
Add the missing include of the ns_common header.

Signed-off-by: Christian Brauner <brauner@kernel.org>
---
 include/linux/cgroup_namespace.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/cgroup_namespace.h b/include/linux/cgroup_namespace.h
index b7dbf4d623d2..81ccbdee425b 100644
--- a/include/linux/cgroup_namespace.h
+++ b/include/linux/cgroup_namespace.h
@@ -2,6 +2,8 @@
 #ifndef _LINUX_CGROUP_NAMESPACE_H
 #define _LINUX_CGROUP_NAMESPACE_H
 
+#include <linux/ns_common.h>
+
 struct cgroup_namespace {
 	struct ns_common	ns;
 	struct user_namespace	*user_ns;

-- 
2.47.3
Re: [PATCH 1/3] cgroup: add missing ns_common include
Posted by Tejun Heo 1 week, 2 days ago
On Mon, Sep 22, 2025 at 02:42:35PM +0200, Christian Brauner wrote:
> Add the missing include of the ns_common header.
> 
> Signed-off-by: Christian Brauner <brauner@kernel.org>

Acked-by: Tejun Heo <tj@kernel.org>

Please let me know if you want this to go through the cgroup tree.

Thanks.

-- 
tejun
Re: [PATCH 1/3] cgroup: add missing ns_common include
Posted by Jan Kara 1 week, 2 days ago
On Mon 22-09-25 14:42:35, Christian Brauner wrote:
> Add the missing include of the ns_common header.
> 
> Signed-off-by: Christian Brauner <brauner@kernel.org>

Sure. Feel free to add:

Reviewed-by: Jan Kara <jack@suse.cz>

								Honza

> ---
>  include/linux/cgroup_namespace.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/linux/cgroup_namespace.h b/include/linux/cgroup_namespace.h
> index b7dbf4d623d2..81ccbdee425b 100644
> --- a/include/linux/cgroup_namespace.h
> +++ b/include/linux/cgroup_namespace.h
> @@ -2,6 +2,8 @@
>  #ifndef _LINUX_CGROUP_NAMESPACE_H
>  #define _LINUX_CGROUP_NAMESPACE_H
>  
> +#include <linux/ns_common.h>
> +
>  struct cgroup_namespace {
>  	struct ns_common	ns;
>  	struct user_namespace	*user_ns;
> 
> -- 
> 2.47.3
> 
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR