summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/idr.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include/linux/idr.h')
-rw-r--r--backport/backport-include/linux/idr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/backport/backport-include/linux/idr.h b/backport/backport-include/linux/idr.h
index 0d4792ee..d7cf9f0f 100644
--- a/backport/backport-include/linux/idr.h
+++ b/backport/backport-include/linux/idr.h
@@ -5,7 +5,7 @@
#include_next <linux/idr.h>
#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,1,0)
+#if LINUX_VERSION_IS_LESS(3,1,0)
#define ida_simple_get LINUX_BACKPORT(ida_simple_get)
int ida_simple_get(struct ida *ida, unsigned int start, unsigned int end,
gfp_t gfp_mask);
@@ -14,7 +14,7 @@ int ida_simple_get(struct ida *ida, unsigned int start, unsigned int end,
void ida_simple_remove(struct ida *ida, unsigned int id);
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
+#if LINUX_VERSION_IS_LESS(3,9,0)
#include <linux/errno.h>
/**
* backport of idr idr_alloc() usage