* [PATCH] fs: add <linux/init_task.h> for 'init_fs'
@ 2026-01-08 11:58 Ben Dooks
2026-01-08 14:52 ` Jan Kara
2026-01-12 13:12 ` Christian Brauner
0 siblings, 2 replies; 3+ messages in thread
From: Ben Dooks @ 2026-01-08 11:58 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, jack, brauner, viro, Ben Dooks
The init_fs symbol is defined in <linux/init_task.h> but was
not included in fs/fs_struct.c so fix by adding the include.
Fixes the following sparse warning:
fs/fs_struct.c:150:18: warning: symbol 'init_fs' was not declared. Should it be static?
Fixes: 3e93cd671813e ("Take fs_struct handling to new file")
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
fs/fs_struct.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/fs_struct.c b/fs/fs_struct.c
index b8c46c5a38a0..394875d06fd6 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -6,6 +6,7 @@
#include <linux/path.h>
#include <linux/slab.h>
#include <linux/fs_struct.h>
+#include <linux/init_task.h>
#include "internal.h"
/*
--
2.37.2.352.g3c44437643
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] fs: add <linux/init_task.h> for 'init_fs'
2026-01-08 11:58 [PATCH] fs: add <linux/init_task.h> for 'init_fs' Ben Dooks
@ 2026-01-08 14:52 ` Jan Kara
2026-01-12 13:12 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kara @ 2026-01-08 14:52 UTC (permalink / raw)
To: Ben Dooks; +Cc: linux-fsdevel, linux-kernel, jack, brauner, viro
On Thu 08-01-26 11:58:56, Ben Dooks wrote:
> The init_fs symbol is defined in <linux/init_task.h> but was
> not included in fs/fs_struct.c so fix by adding the include.
>
> Fixes the following sparse warning:
> fs/fs_struct.c:150:18: warning: symbol 'init_fs' was not declared. Should it be static?
>
> Fixes: 3e93cd671813e ("Take fs_struct handling to new file")
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Sure. Feel free to add:
Reviewed-by: Jan Kara <jack@suse.cz>
Honza
> ---
> fs/fs_struct.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/fs/fs_struct.c b/fs/fs_struct.c
> index b8c46c5a38a0..394875d06fd6 100644
> --- a/fs/fs_struct.c
> +++ b/fs/fs_struct.c
> @@ -6,6 +6,7 @@
> #include <linux/path.h>
> #include <linux/slab.h>
> #include <linux/fs_struct.h>
> +#include <linux/init_task.h>
> #include "internal.h"
>
> /*
> --
> 2.37.2.352.g3c44437643
>
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] fs: add <linux/init_task.h> for 'init_fs'
2026-01-08 11:58 [PATCH] fs: add <linux/init_task.h> for 'init_fs' Ben Dooks
2026-01-08 14:52 ` Jan Kara
@ 2026-01-12 13:12 ` Christian Brauner
1 sibling, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2026-01-12 13:12 UTC (permalink / raw)
To: linux-fsdevel, Ben Dooks
Cc: Christian Brauner, linux-kernel, jack, brauner, viro
On Thu, 08 Jan 2026 11:58:56 +0000, Ben Dooks wrote:
> The init_fs symbol is defined in <linux/init_task.h> but was
> not included in fs/fs_struct.c so fix by adding the include.
>
> Fixes the following sparse warning:
> fs/fs_struct.c:150:18: warning: symbol 'init_fs' was not declared. Should it be static?
>
>
> [...]
Applied to the vfs-7.0.misc branch of the vfs/vfs.git tree.
Patches in the vfs-7.0.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.0.misc
[1/1] fs: add <linux/init_task.h> for 'init_fs'
https://git.kernel.org/vfs/vfs/c/dc162e4d6be9
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-12 13:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-08 11:58 [PATCH] fs: add <linux/init_task.h> for 'init_fs' Ben Dooks
2026-01-08 14:52 ` Jan Kara
2026-01-12 13:12 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®