Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eric Biggers and committed by
Jan Kara
d6f7aa98 66917a31

+1
+1
fs/notify/fdinfo.c
··· 15 15 #include <linux/exportfs.h> 16 16 17 17 #include "inotify/inotify.h" 18 + #include "fdinfo.h" 18 19 #include "fsnotify.h" 19 20 20 21 #if defined(CONFIG_PROC_FS)