xref: /openbmc/linux/fs/notify/fdinfo.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2be77196bSCyrill Gorcunov #ifndef __FSNOTIFY_FDINFO_H__
3be77196bSCyrill Gorcunov #define __FSNOTIFY_FDINFO_H__
4be77196bSCyrill Gorcunov 
5be77196bSCyrill Gorcunov #include <linux/errno.h>
6be77196bSCyrill Gorcunov #include <linux/proc_fs.h>
7be77196bSCyrill Gorcunov 
8be77196bSCyrill Gorcunov struct seq_file;
9be77196bSCyrill Gorcunov struct file;
10be77196bSCyrill Gorcunov 
11be77196bSCyrill Gorcunov #ifdef CONFIG_PROC_FS
12be77196bSCyrill Gorcunov 
13be77196bSCyrill Gorcunov #ifdef CONFIG_INOTIFY_USER
14a3816ab0SJoe Perches void inotify_show_fdinfo(struct seq_file *m, struct file *f);
15be77196bSCyrill Gorcunov #endif
16be77196bSCyrill Gorcunov 
17be77196bSCyrill Gorcunov #ifdef CONFIG_FANOTIFY
18a3816ab0SJoe Perches void fanotify_show_fdinfo(struct seq_file *m, struct file *f);
19be77196bSCyrill Gorcunov #endif
20be77196bSCyrill Gorcunov 
21be77196bSCyrill Gorcunov #else /* CONFIG_PROC_FS */
22be77196bSCyrill Gorcunov 
23be77196bSCyrill Gorcunov #define inotify_show_fdinfo	NULL
24be77196bSCyrill Gorcunov #define fanotify_show_fdinfo	NULL
25be77196bSCyrill Gorcunov 
26be77196bSCyrill Gorcunov #endif /* CONFIG_PROC_FS */
27be77196bSCyrill Gorcunov 
28be77196bSCyrill Gorcunov #endif /* __FSNOTIFY_FDINFO_H__ */
29