projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: cpu/hotplug: Remove deprecated CPU-hotplug functions. (v5.15)
[lttng-modules.git]
/
wrapper
/
uaccess.h
diff --git
a/wrapper/uaccess.h
b/wrapper/uaccess.h
index c56427c5173ea7e3736de0a8ea2dc526141a9d91..6277d78f22eb911264a78dab5bc595f0ba990c65 100644
(file)
--- a/
wrapper/uaccess.h
+++ b/
wrapper/uaccess.h
@@
-13,16
+13,17
@@
#include <linux/uaccess.h>
#include <lttng-kernel-version.h>
#include <linux/uaccess.h>
#include <lttng-kernel-version.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_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
#define lttng_access_ok(type, addr, size) access_ok(addr, size)
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define lttng_access_ok(type, addr, size) access_ok(addr, size)
-#else /* L
INUX_VERSION_CODE >=
KERNEL_VERSION(5,0,0) */
+#else /* L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(5,0,0) */
#define lttng_access_ok(type, addr, size) access_ok(type, addr, size)
#define lttng_access_ok(type, addr, size) access_ok(type, addr, size)
-#endif /* L
INUX_VERSION_CODE >=
KERNEL_VERSION(5,0,0) */
+#endif /* L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(5,0,0) */
#endif /* _LTTNG_WRAPPER_UACCESS_H */
#endif /* _LTTNG_WRAPPER_UACCESS_H */
This page took
0.025215 seconds
and
4
git commands to generate.