]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:16:00 +0000 (17:16 +0100)
commit2d1a5a595bf27ca55b11adc3924866f276bd712b
tree7d95a6a97a5c3ad41993c7a775f54ea9b87b30f5
parent87e207b6aa93a59191ebd6c97e52c526fb4145d2
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>
fs/file.c