Re: [PATCH] fs: add <linux/init_task.h> for 'init_fs'
From: Christian Brauner
Date: Mon Jan 12 2026 - 08:12:39 EST
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