Move headers under include/
[lttng-modules.git] / probes / lttng-probe-user.c
index 0d1f95fe00861aec694136b514e07523e285898d..4f5728ac3e150bd0ff68611d0acb8e297f51ef57 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
+/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
  *
  * lttng-probe-user.c
  *
@@ -7,8 +7,7 @@
 
 #include <linux/uaccess.h>
 #include <linux/module.h>
-#include <wrapper/uaccess.h>
-#include <probes/lttng-probe-user.h>
+#include <lttng/lttng-probe-user.h>
 
 /*
  * Calculate string length. Include final null terminating character if there is
@@ -31,8 +30,7 @@ long lttng_strlen_user_inatomic(const char *addr)
                char v;
                unsigned long ret;
 
-               if (unlikely(!lttng_access_ok(VERIFY_READ,
-                               (__force const char __user *) addr,
+               if (unlikely(!access_ok((__force const char __user *) addr,
                                sizeof(v))))
                        break;
                ret = __copy_from_user_inatomic(&v,
This page took 0.025024 seconds and 4 git commands to generate.