From: Francis Deslauriers Date: Thu, 30 Aug 2018 01:36:47 +0000 (-0400) Subject: Fix: ACCESS_ONCE was removed in 4.15, use READ_ONCE instead X-Git-Tag: v2.11.0-rc1~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b29a9c89c78c0d380625475f5810630a1c121ae8;p=lttng-modules.git Fix: ACCESS_ONCE was removed in 4.15, use READ_ONCE instead Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/lttng-uprobes.c b/probes/lttng-uprobes.c index 0b399291..bcdbbd84 100644 --- a/probes/lttng-uprobes.c +++ b/probes/lttng-uprobes.c @@ -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, <tng_probe_ctx,