X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-user.c;h=009cfed004c65d124229301365df8582f896db53;hb=3b4aafcbbef722c5d04f2fe06a47c47d4d23eda0;hp=4162a7e42d2d94942fa4d5927afff8f95660d807;hpb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;p=lttng-modules.git diff --git a/probes/lttng-probe-user.c b/probes/lttng-probe-user.c index 4162a7e4..009cfed0 100644 --- a/probes/lttng-probe-user.c +++ b/probes/lttng-probe-user.c @@ -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 #include -#include +#include +#include /* * 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;