1 #ifndef _BCACHEFS_CHARDEV_H
2 #define _BCACHEFS_CHARDEV_H
6 long bch2_fs_ioctl(struct bch_fs *, unsigned, void __user *);
8 void bch2_fs_chardev_exit(struct bch_fs *);
9 int bch2_fs_chardev_init(struct bch_fs *);
11 void bch2_chardev_exit(void);
12 int __init bch2_chardev_init(void);
16 static inline long bch2_fs_ioctl(struct bch_fs *c,
17 unsigned cmd, void __user * arg)
22 static inline void bch2_fs_chardev_exit(struct bch_fs *c) {}
23 static inline int bch2_fs_chardev_init(struct bch_fs *c) { return 0; }
25 static inline void bch2_chardev_exit(void) {}
26 static inline int __init bch2_chardev_init(void) { return 0; }
28 #endif /* NO_BCACHEFS_FS */
30 #endif /* _BCACHEFS_CHARDEV_H */