32 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _BCACHEFS_CHARDEV_H3#define _BCACHEFS_CHARDEV_H4 5#ifndef NO_BCACHEFS_FS6 7long bch2_fs_ioctl(struct bch_fs *, unsigned, void __user *);8 9void bch2_fs_chardev_exit(struct bch_fs *);10int bch2_fs_chardev_init(struct bch_fs *);11 12void bch2_chardev_exit(void);13int __init bch2_chardev_init(void);14 15#else16 17static inline long bch2_fs_ioctl(struct bch_fs *c,18 unsigned cmd, void __user * arg)19{20 return -ENOTTY;21}22 23static inline void bch2_fs_chardev_exit(struct bch_fs *c) {}24static inline int bch2_fs_chardev_init(struct bch_fs *c) { return 0; }25 26static inline void bch2_chardev_exit(void) {}27static inline int __init bch2_chardev_init(void) { return 0; }28 29#endif /* NO_BCACHEFS_FS */30 31#endif /* _BCACHEFS_CHARDEV_H */32