diff options
| author | Zhang Kunbo <zhangkunbo@huawei.com> | 2024-12-17 07:18:36 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-23 17:21:13 +0100 |
| commit | 62861a5d4dd60e06b4c86d67e35219efc2428833 (patch) | |
| tree | ff4d73ec89ca996802354b65657cb203d311c016 /fs | |
| parent | c598398815ee6b859db1dab4648acafa0a9ce9f1 (diff) | |
| download | linux-62861a5d4dd60e06b4c86d67e35219efc2428833.tar.gz linux-62861a5d4dd60e06b4c86d67e35219efc2428833.tar.bz2 linux-62861a5d4dd60e06b4c86d67e35219efc2428833.zip | |
fs: fix missing declaration of init_files
[ Upstream commit 2b2fc0be98a828cf33a88a28e9745e8599fb05cf ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
| -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 bd817e31d798..a178efc8cf4b 100644 --- a/fs/file.c +++ b/fs/file.c @@ -21,6 +21,7 @@ #include <linux/rcupdate.h> #include <linux/close_range.h> #include <net/sock.h> +#include <linux/init_task.h> #include "internal.h" |
