X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fwrapper%2Fmm.h;h=d3bdda66e9987d35ebfb09e08d8ec844eece2071;hb=5f4c791e2ad2c814101ccdb500e65543f2792c41;hp=12b58be782fd65786a9d406175b262d10aa7348f;hpb=be06402dbdbea2f3394e60ec15c5d3356e2be416;p=lttng-modules.git diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h index 12b58be7..d3bdda66 100644 --- a/include/wrapper/mm.h +++ b/include/wrapper/mm.h @@ -13,7 +13,7 @@ #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0) \ +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0) \ || LTTNG_UBUNTU_KERNEL_RANGE(4,4,25,44, 4,5,0,0)) /* @@ -40,7 +40,7 @@ bool wrapper_check_enough_free_pages(unsigned long num_pages) } #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) static inline void wrapper_set_current_oom_origin(void) { @@ -53,7 +53,7 @@ void wrapper_clear_current_oom_origin(void) return clear_current_oom_origin(); } -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ +#else /* #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) */ static inline void wrapper_set_current_oom_origin(void) @@ -66,5 +66,5 @@ void wrapper_clear_current_oom_origin(void) { return; } -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ +#endif /* #else #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) */ #endif /* _LTTNG_WRAPPER_MM_H */