]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: fix missing declaration of init_files
authorZhang Kunbo <zhangkunbo@huawei.com>
Tue, 17 Dec 2024 07:18:36 +0000 (07:18 +0000)
committerChristian Brauner <brauner@kernel.org>
Tue, 17 Dec 2024 12:38:46 +0000 (13:38 +0100)
commit2b2fc0be98a828cf33a88a28e9745e8599fb05cf
tree929df5a62504bf958f50023d297470a320986d88
parentaa21f333c86c8a09d39189de87abb0153d338190
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>
fs/file.c