diff options
author | Eric Biggers <ebiggers@google.com> | 2018-11-14 16:12:14 -0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2018-11-15 17:34:27 +0100 |
commit | d6f7aa9820f21a879af8ceda17b2ebd1cf4beb25 (patch) | |
tree | 80d3661f0e60d4c13cabd63adf4205def68182e6 /fs/notify | |
parent | 66917a3130f218dcef9eeab4fd11a71cd00cd7c9 (diff) | |
download | linux-d6f7aa9820f21a879af8ceda17b2ebd1cf4beb25.tar.bz2 |
fsnotify/fdinfo: include fdinfo.h for inotify_show_fdinfo()
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: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/fdinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/notify/fdinfo.c b/fs/notify/fdinfo.c index 348a184bcdda..1e2bfd26b352 100644 --- a/fs/notify/fdinfo.c +++ b/fs/notify/fdinfo.c @@ -15,6 +15,7 @@ #include <linux/exportfs.h> #include "inotify/inotify.h" +#include "fdinfo.h" #include "fsnotify.h" #if defined(CONFIG_PROC_FS) |