X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fkprobes.h;h=2f9d011d79f23ddfbaf198bd6e84e1fc04aa599f;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=4d6993e26d7dab40c77675ef8c09e5d96ca36a68;hpb=e0f2366419fc59700e575bab82a41255c51de2dc;p=lttng-modules.git diff --git a/wrapper/kprobes.h b/wrapper/kprobes.h index 4d6993e2..2f9d011d 100644 --- a/wrapper/kprobes.h +++ b/wrapper/kprobes.h @@ -9,9 +9,9 @@ #define _LTTNG_WRAPPER_KPROBES_H #include -#include +#include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) static inline struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) @@ -19,7 +19,7 @@ struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) return get_kretprobe(ri); } -#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0) */ +#else /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) */ static inline struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) @@ -27,6 +27,6 @@ struct kretprobe *lttng_get_kretprobe(struct kretprobe_instance *ri) return ri->rp; } -#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0) */ +#endif /* LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0) */ #endif /* _LTTNG_WRAPPER_KPROBES_H */