Cleanup: Move patches.i to include/generated/
[lttng-modules.git] / probes / lttng-probe-user.c
index 4162a7e42d2d94942fa4d5927afff8f95660d807..009cfed004c65d124229301365df8582f896db53 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,7 +7,8 @@
 
 #include <linux/uaccess.h>
 #include <linux/module.h>
-#include <probes/lttng-probe-user.h>
+#include <wrapper/uaccess.h>
+#include <lttng/probe-user.h>
 
 /*
  * Calculate string length. Include final null terminating character if there is
@@ -30,7 +31,7 @@ long lttng_strlen_user_inatomic(const char *addr)
                char v;
                unsigned long ret;
 
-               if (unlikely(!access_ok(VERIFY_READ,
+               if (unlikely(!lttng_access_ok(VERIFY_READ,
                                (__force const char __user *) addr,
                                sizeof(v))))
                        break;
This page took 0.023054 seconds and 4 git commands to generate.