Skip to content

Commit 589cff4

Browse files
bjdooks-ctbrauner
authored andcommitted
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: 3e93cd6 ("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>
1 parent 1219e0f commit 589cff4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/fs_struct.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <linux/path.h>
77
#include <linux/slab.h>
88
#include <linux/fs_struct.h>
9+
#include <linux/init_task.h>
910
#include "internal.h"
1011

1112
/*

0 commit comments

Comments
 (0)