Fix: ACCESS_ONCE was removed in 4.15, use READ_ONCE instead
[lttng-modules.git] / probes / lttng-uprobes.c
index 0b399291245f9f38d4ce1f52931311ebada3d73a..bcdbbd84840259b1a701b39934d6cb3415c1258c 100644 (file)
@@ -52,11 +52,11 @@ int lttng_uprobes_handler_pre(struct uprobe_consumer *uc, struct pt_regs *regs)
                unsigned long ip;
        } payload;
 
-       if (unlikely(!ACCESS_ONCE(chan->session->active)))
+       if (unlikely(!READ_ONCE(chan->session->active)))
                return 0;
-       if (unlikely(!ACCESS_ONCE(chan->enabled)))
+       if (unlikely(!READ_ONCE(chan->enabled)))
                return 0;
-       if (unlikely(!ACCESS_ONCE(event->enabled)))
+       if (unlikely(!READ_ONCE(event->enabled)))
                return 0;
 
        lib_ring_buffer_ctx_init(&ctx, chan->chan, &lttng_probe_ctx,
This page took 0.022914 seconds and 4 git commands to generate.