[PATCH 1/3] backports: do not add debugfs_create_x64() on RHEL 6.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



debugfs_create_x64() is provided by the RHEL 6.4 kernel and should not
be added to the build on such a kernel.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 backport/backport-include/linux/debugfs.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/backport/backport-include/linux/debugfs.h b/backport/backport-include/linux/debugfs.h
index 938eac2..d2e6b38 100644
--- a/backport/backport-include/linux/debugfs.h
+++ b/backport/backport-include/linux/debugfs.h
@@ -16,6 +16,7 @@ static inline void debugfs_remove_recursive(struct dentry *dentry)
 #endif /* < 2.6.27 */
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)
+#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6,4)
 static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode,
 						struct dentry *parent,
 						u64 *value)
@@ -23,5 +24,6 @@ static inline struct dentry *debugfs_create_x64(const char *name, umode_t mode,
 	return debugfs_create_u64(name, mode, parent, value);
 }
 #endif
+#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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux