X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Fwrapper%2Fmm.h;h=f7e8e87e6ee17fe8580ab598bd15309b40bd6eed;hb=4e4fb933c8a6b85ac3d5a60a417726e20e2cc695;hp=12b58be782fd65786a9d406175b262d10aa7348f;hpb=117ab60f69a98dcbc365de8008ab93e6699d153a;p=lttng-modules.git diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h index 12b58be7..f7e8e87e 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,31 +40,4 @@ bool wrapper_check_enough_free_pages(unsigned long num_pages) } #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) -static inline -void wrapper_set_current_oom_origin(void) -{ - return set_current_oom_origin(); -} - -static inline -void wrapper_clear_current_oom_origin(void) -{ - return clear_current_oom_origin(); -} - -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ - -static inline -void wrapper_set_current_oom_origin(void) -{ - return; -} - -static inline -void wrapper_clear_current_oom_origin(void) -{ - return; -} -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)) */ #endif /* _LTTNG_WRAPPER_MM_H */