diff options
Diffstat (limited to 'backport/backport-include')
-rw-r--r-- | backport/backport-include/linux/debugfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backport/backport-include/linux/debugfs.h b/backport/backport-include/linux/debugfs.h index 11670388..fb50c4f5 100644 --- a/backport/backport-include/linux/debugfs.h +++ b/backport/backport-include/linux/debugfs.h @@ -53,4 +53,11 @@ debugfs_real_fops(const struct file *filp) } #endif /* <4.9.0 but not >= 4.8.4, 4.7.10 */ +#ifndef DEFINE_DEBUGFS_ATTRIBUTE +#define DEFINE_DEBUGFS_ATTRIBUTE(__fops, __get, __set, __fmt) \ + DEFINE_SIMPLE_ATTRIBUTE(__fops, __get, __set, __fmt) +#define debugfs_create_file_unsafe(name, mode, parent, data, fops) \ + debugfs_create_file(name, mode, parent, data, fops) +#endif + #endif /* __BACKPORT_DEBUGFS_H_ */ |