From: Michael Jeanson Date: Thu, 2 Apr 2020 18:08:36 +0000 (-0400) Subject: fix: uaccess wrapper for CentOS >= 4.18.0-147 X-Git-Tag: v2.11.3~1 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=3d4b15525eec7bc9dcfd7668c3f3d0192ef3f0b3;p=lttng-modules.git fix: uaccess wrapper for CentOS >= 4.18.0-147 Fixes: #1253 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: I2a79c1c0e897a6148e60e5599949cd2778d09d50 --- diff --git a/wrapper/uaccess.h b/wrapper/uaccess.h index c56427c5..c562e349 100644 --- a/wrapper/uaccess.h +++ b/wrapper/uaccess.h @@ -13,7 +13,8 @@ #include #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) || \ + LTTNG_RHEL_KERNEL_RANGE(4,18,0,147,0,0, 4,19,0,0,0,0)) #define VERIFY_READ 0 #define VERIFY_WRITE 1