[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241217071836.2634868-1-zhangkunbo@huawei.com>
Date: Tue, 17 Dec 2024 07:18:36 +0000
From: Zhang Kunbo <zhangkunbo@...wei.com>
To: <viro@...iv.linux.org.uk>, <brauner@...nel.org>, <jack@...e.cz>
CC: <linux-fsdevel@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<chris.zjh@...wei.com>, <liaochang1@...wei.com>
Subject: [PATCH -next] 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@...wei.com>
---
fs/file.c | 1 +
1 file changed, 1 insertion(+)
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"
--
2.34.1
Powered by blists - more mailing lists