]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs, notify: Move bare fdinfo helpers to a header
authorCyrill Gorcunov <gorcunov@openvz.org>
Thu, 29 Nov 2012 03:19:20 +0000 (14:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:58 +0000 (16:23 +1100)
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>
fs/notify/fdinfo.c
fs/notify/fdinfo.h

index 62db6b6161a0aabe0e54d476870b85e1e35ee34e..6f94c3dc54d2df23c4e79608b9e60cc4010a5b42 100644 (file)
@@ -145,9 +145,4 @@ int fanotify_show_fdinfo(struct seq_file *m, struct file *f)
 
 #endif /* CONFIG_INOTIFY_USER || CONFIG_FANOTIFY */
 
-#else /* CONFIG_PROC_FS */
-
-#define inotify_show_fdinfo    NULL
-#define fanotify_show_fdinfo   NULL
-
 #endif /* CONFIG_PROC_FS */
index 49939619e987cd46f9884becf3da767312ce7b3c..556afda990e9bb76719ea64d6b12697f4f8187a3 100644 (file)
@@ -17,6 +17,11 @@ extern int inotify_show_fdinfo(struct seq_file *m, struct file *f);
 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__ */