X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Fwrapper%2Fmm.h;h=61ac812749b734670beabbe3229633e790a29e69;hb=939200ef160c95c8a9d71fd80c99f42a1de0a9f0;hp=d3bdda66e9987d35ebfb09e08d8ec844eece2071;hpb=da1f5a264fff33fc5a9518e519fb0084bf1074af;p=lttng-modules.git diff --git a/include/wrapper/mm.h b/include/wrapper/mm.h index d3bdda66..61ac8127 100644 --- a/include/wrapper/mm.h +++ b/include/wrapper/mm.h @@ -13,6 +13,22 @@ #include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,3,0)) +static inline +void wrapper_vm_flags_set(struct vm_area_struct *vma, + vm_flags_t flags) +{ + vm_flags_set(vma, flags); +} +#else +static inline +void wrapper_vm_flags_set(struct vm_area_struct *vma, + vm_flags_t flags) +{ + vma->vm_flags |= flags; +} +#endif + #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,6,0) \ || LTTNG_UBUNTU_KERNEL_RANGE(4,4,25,44, 4,5,0,0))