Otherwise if the kernel gets build without procfs support
we will have build error
| fs/notify/inotify/inotify_user.c:333:17: error: 'inotify_show_fdinfo' undeclared here (not in a function)
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
#endif /* CONFIG_INOTIFY_USER || CONFIG_FANOTIFY */
-#else /* CONFIG_PROC_FS */
-
-#define inotify_show_fdinfo NULL
-#define fanotify_show_fdinfo NULL
-
#endif /* CONFIG_PROC_FS */
extern int fanotify_show_fdinfo(struct seq_file *m, struct file *f);
#endif
+#else /* CONFIG_PROC_FS */
+
+#define inotify_show_fdinfo NULL
+#define fanotify_show_fdinfo NULL
+
#endif /* CONFIG_PROC_FS */
#endif /* __FSNOTIFY_FDINFO_H__ */