From: Zhang Kunbo Date: Tue, 17 Dec 2024 07:18:36 +0000 (+0000) Subject: fs: fix missing declaration of init_files X-Git-Tag: v6.13-rc7~34^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b2fc0be98a828cf33a88a28e9745e8599fb05cf;p=thirdparty%2Flinux.git 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 Link: https://lore.kernel.org/r/20241217071836.2634868-1-zhangkunbo@huawei.com Signed-off-by: Christian Brauner --- diff --git a/fs/file.c b/fs/file.c index fb1011cf6b4a6..25c6e53b03f8f 100644 --- a/fs/file.c +++ b/fs/file.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "internal.h"