Fix: ACCESS_ONCE() removed in kernel 4.15
[lttng-modules.git] / lib / ringbuffer / frontend.h
index 909abc2dc80c714b9aa1372f1a41625c54b2e6ab..1450cb7faf415d7e73f53b07101b534382474b53 100644 (file)
@@ -168,7 +168,7 @@ static inline
 int lib_ring_buffer_is_finalized(const struct lib_ring_buffer_config *config,
                                 struct lib_ring_buffer *buf)
 {
-       int finalized = ACCESS_ONCE(buf->finalized);
+       int finalized = READ_ONCE(buf->finalized);
        /*
         * Read finalized before counters.
         */
This page took 0.023094 seconds and 4 git commands to generate.