fsnotify/fdinfo: include fdinfo.h for inotify_show_fdinfo()
Subsystems (2)
PATCH 1/1 fsnotify/fdinfo: include fdinfo.h for inotify_show_fdinfo()
From: Eric Biggers <[email protected]>
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.
--- fs/notify/fdinfo.c | 1 + 1 file changed, 1 insertion(+)
fs/notify/fdinfo.c +1 -0
@@ -15,6 +15,7 @@#include <linux/exportfs.h> #include "inotify/inotify.h" +#include "fdinfo.h" #include "fsnotify.h" #if defined(CONFIG_PROC_FS )
Signature · 1 line
2.19.1.930.g4563a0d9d0-goog
Jan Kara
maintainerQuoted 10 lines · Eric Biggers
From: Eric Biggers <[email protected]>
inotify_show_fdinfo()is defined infs/notify/fdinfo.cand declared infs/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 <[email protected]>
Good point. Patch applied. Thanks!
Honza
Quoted 19 lines
--- fs/notify/fdinfo.c | 1 + 1 file changed, 1 insertion(+)fs/notify/fdinfo.c +1
-0@@ -15,6 +15,7 @@#include <linux/exportfs.h> #include "inotify/inotify.h" +#include "fdinfo.h" #include "fsnotify.h" #if defined(CONFIG_PROC_FS )Signature · 1 line
2.19.1.930.g4563a0d9d0-goog
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR