X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fwrapper%2Fmm.h;h=f7e8e87e6ee17fe8580ab598bd15309b40bd6eed;hb=686eb00593241450a0bd19faa68c0725abd63b0c;hp=d3bdda66e9987d35ebfb09e08d8ec844eece2071;hpb=1cbe11ed929855ce83efb9ce89447af305efa075;p=lttng-modules.git diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h index d3bdda66..f7e8e87e 100644 --- a/include/wrapper/mm.h +++ b/include/wrapper/mm.h @@ -40,31 +40,4 @@ bool wrapper_check_enough_free_pages(unsigned long num_pages) } #endif -#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_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 (LTTNG_LINUX_VERSION_CODE >= LTTNG_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 (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) */ #endif /* _LTTNG_WRAPPER_MM_H */