X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fobjtool.h;h=d4f9cccfb169fd4785cc36fdd089d08e66eb4af8;hb=bf18934d48ba9c7e4c861559dd02a33fce51aff1;hp=3b997cae56d7837ca6bcd4493d7794c2fc16c074;hpb=37b9cb0e6cb92181b7a25583849a9d161a558982;p=lttng-modules.git diff --git a/wrapper/objtool.h b/wrapper/objtool.h index 3b997cae..d4f9cccf 100644 --- a/wrapper/objtool.h +++ b/wrapper/objtool.h @@ -8,16 +8,17 @@ #ifndef _LTTNG_WRAPPER_OBJTOOL_H #define _LTTNG_WRAPPER_OBJTOOL_H -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,10,0) || \ + LTTNG_RHEL_KERNEL_RANGE(4,18,0,372,0,0, 4,19,0,0,0,0)) #include -#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) #include #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0)) #define LTTNG_STACK_FRAME_NON_STANDARD(func) \ STACK_FRAME_NON_STANDARD(func)