diff options
author | Zhang Kunbo <zhangkunbo@huawei.com> | 2024-12-17 08:18:36 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-12-17 13:38:46 +0100 |
commit | 2b2fc0be98a828cf33a88a28e9745e8599fb05cf (patch) | |
tree | 929df5a62504bf958f50023d297470a320986d88 /fs/file.c | |
parent | fs: fix is_mnt_ns_file() (diff) | |
download | linux-2b2fc0be98a828cf33a88a28e9745e8599fb05cf.tar.xz linux-2b2fc0be98a828cf33a88a28e9745e8599fb05cf.zip |
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 <zhangkunbo@huawei.com>
Link: https://lore.kernel.org/r/20241217071836.2634868-1-zhangkunbo@huawei.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/file.c')
-rw-r--r-- | fs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/file.c b/fs/file.c index fb1011cf6b4a..25c6e53b03f8 100644 --- a/fs/file.c +++ b/fs/file.c @@ -22,6 +22,7 @@ #include <linux/close_range.h> #include <linux/file_ref.h> #include <net/sock.h> +#include <linux/init_task.h> #include "internal.h" |