From c958091068974b851111b73555c6b2d3572f7e11 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 8 Sep 2013 18:19:37 +0200 Subject: [PATCH] backports: add debugfs_create_x64() This adds debugfs_create_x64() by calling debugfs_create_u64() instead. The 64 bit number is then not hex, but dec formated in debug fs. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/debugfs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backport/backport-include/linux/debugfs.h b/backport/backport-include/linux/debugfs.h index 16604e3f29f8..938eac23a2ca 100644 --- a/backport/backport-include/linux/debugfs.h +++ b/backport/backport-include/linux/debugfs.h @@ -15,4 +15,13 @@ static inline void debugfs_remove_recursive(struct dentry *dentry) #endif #endif /* < 2.6.27 */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) +static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode, + struct dentry *parent, + u64 *value) +{ + return debugfs_create_u64(name, mode, parent, value); +} +#endif + #endif /* __BACKPORT_LINUX_DEBUGFS_H */ -- 2.30.2