1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _BCACHEFS_CHARDEV_H 2 #ifndef _BCACHEFS_CHARDEV_H 3 #define _BCACHEFS_CHARDEV_H 3 #define _BCACHEFS_CHARDEV_H 4 4 5 #ifndef NO_BCACHEFS_FS 5 #ifndef NO_BCACHEFS_FS 6 6 7 long bch2_fs_ioctl(struct bch_fs *, unsigned, 7 long bch2_fs_ioctl(struct bch_fs *, unsigned, void __user *); 8 8 9 void bch2_fs_chardev_exit(struct bch_fs *); 9 void bch2_fs_chardev_exit(struct bch_fs *); 10 int bch2_fs_chardev_init(struct bch_fs *); 10 int bch2_fs_chardev_init(struct bch_fs *); 11 11 12 void bch2_chardev_exit(void); 12 void bch2_chardev_exit(void); 13 int __init bch2_chardev_init(void); 13 int __init bch2_chardev_init(void); 14 14 15 #else 15 #else 16 16 17 static inline long bch2_fs_ioctl(struct bch_fs 17 static inline long bch2_fs_ioctl(struct bch_fs *c, 18 unsigned cmd, 18 unsigned cmd, void __user * arg) 19 { 19 { 20 return -ENOTTY; 20 return -ENOTTY; 21 } 21 } 22 22 23 static inline void bch2_fs_chardev_exit(struct 23 static inline void bch2_fs_chardev_exit(struct bch_fs *c) {} 24 static inline int bch2_fs_chardev_init(struct 24 static inline int bch2_fs_chardev_init(struct bch_fs *c) { return 0; } 25 25 26 static inline void bch2_chardev_exit(void) {} 26 static inline void bch2_chardev_exit(void) {} 27 static inline int __init bch2_chardev_init(voi 27 static inline int __init bch2_chardev_init(void) { return 0; } 28 28 29 #endif /* NO_BCACHEFS_FS */ 29 #endif /* NO_BCACHEFS_FS */ 30 30 31 #endif /* _BCACHEFS_CHARDEV_H */ 31 #endif /* _BCACHEFS_CHARDEV_H */ 32 32
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.