提交 2f7601cb 编写于 作者: E Eric Biggers 提交者: Xie XiuQi

fsnotify/fdinfo: include fdinfo.h for inotify_show_fdinfo()

mainline inclusion
from mainline-5.0-rc1
commit d6f7aa9820f21a879af8ceda17b2ebd1cf4beb25
category: bugfix
bugzilla: 10640
CVE: NA
---------------------------

inotify_show_fdinfo() is defined in fs/notify/fdinfo.c and declared in
fs/notify/fdinfo.h, but the declaration isn't included at the point of
the definition.  Include the header to enforce that the definition
matches the declaration.

This addresses a gcc warning when -Wmissing-prototypes is enabled.
Signed-off-by: NEric Biggers <ebiggers@google.com>
Signed-off-by: NJan Kara <jack@suse.cz>
Signed-off-by: Nyangerkun <yangerkun@huawei.com>
Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 77d4ccbc
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <linux/exportfs.h> #include <linux/exportfs.h>
#include "inotify/inotify.h" #include "inotify/inotify.h"
#include "fdinfo.h"
#include "fsnotify.h" #include "fsnotify.h"
#if defined(CONFIG_PROC_FS) #if defined(CONFIG_PROC_FS)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册