From: Mathieu Desnoyers Date: Mon, 27 Apr 2015 15:03:17 +0000 (-0400) Subject: Fix: update get_pfnblock_flags_mask wrapper for debian kernels X-Git-Tag: v2.6.1~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e5ffe240e5c175b800049cf06d02bd9c07ffc3d9;p=lttng-modules.git Fix: update get_pfnblock_flags_mask wrapper for debian kernels Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/page_alloc.c b/wrapper/page_alloc.c index 184ec71c..d82d897e 100644 --- a/wrapper/page_alloc.c +++ b/wrapper/page_alloc.c @@ -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 #include diff --git a/wrapper/page_alloc.h b/wrapper/page_alloc.h index 06e2ddcb..5e84b5c0 100644 --- a/wrapper/page_alloc.h +++ b/wrapper/page_alloc.h @@ -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