Skip to content

Commit 2b2fc0b

Browse files
Zhang Kunbobrauner
authored andcommitted
fs: fix missing declaration of init_files
fs/file.c should include include/linux/init_task.h for declaration of init_files. This fixes the sparse warning: fs/file.c:501:21: warning: symbol 'init_files' was not declared. Should it be static? Signed-off-by: Zhang Kunbo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent aa21f33 commit 2b2fc0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/close_range.h>
2323
#include <linux/file_ref.h>
2424
#include <net/sock.h>
25+
#include <linux/init_task.h>
2526

2627
#include "internal.h"
2728

0 commit comments

Comments
 (0)