]> git.ipfire.org Git - thirdparty/linux.git/commit
fs: add <linux/init_task.h> for 'init_fs'
authorBen Dooks <ben.dooks@codethink.co.uk>
Thu, 8 Jan 2026 11:58:56 +0000 (11:58 +0000)
committerChristian Brauner <brauner@kernel.org>
Wed, 14 Jan 2026 15:50:37 +0000 (16:50 +0100)
commit589cff4975afe1a4eaaa1d961652f50b1628d78d
treecfc25471739bf422185e33092d392c2235baea33
parent1219e0feaefc9697f738b223540e8e8906291cb3
fs: add <linux/init_task.h> for 'init_fs'

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>
Link: https://patch.msgid.link/20260108115856.238027-1-ben.dooks@codethink.co.uk
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fs_struct.c