[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-backports
Subject: [PATCH 09/11] backports: add debugfs_create_x64()
From: Hauke Mehrtens <hauke () hauke-m ! de>
Date: 2013-09-11 12:11:53
Message-ID: 1378901515-14206-10-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]
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 <hauke@hauke-m.de>
---
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 16604e3..938eac2 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 */
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic