Fix: update get_pfnblock_flags_mask wrapper for debian kernels
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Apr 2015 15:03:17 +0000 (11:03 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Apr 2015 15:04:43 +0000 (11:04 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/page_alloc.c
wrapper/page_alloc.h

index 184ec71c221c0885b6753057c4571e8ee48b06f3..d82d897ef51564decf89df5adcebd84a560addfa 100644 (file)
@@ -24,7 +24,9 @@
 
 #include "../lttng-kernel-version.h"
 
-#if defined(CONFIG_KALLSYMS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2))
+#if (defined(CONFIG_KALLSYMS) \
+       && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2) \
+               || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)))
 
 #include <linux/kallsyms.h>
 #include <linux/mm_types.h>
index 06e2ddcb858c577fa8db63c02668e5962dd12393..5e84b5c0e6b39f68324170d66ce4d4f6efd2f49e 100644 (file)
@@ -31,7 +31,9 @@
  * We need to redefine get_pfnblock_flags_mask to our wrapper, because
  * the get_pageblock_migratetype() macro uses it.
  */
-#if defined(CONFIG_KALLSYMS) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2))
+#if (defined(CONFIG_KALLSYMS) \
+       && (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2) \
+               || LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)))
 
 #define get_pfnblock_flags_mask                wrapper_get_pfnblock_flags_mask
 
This page took 0.025356 seconds and 4 git commands to generate.