Fix: ACCESS_ONCE() removed in kernel 4.15
[lttng-modules.git] / lib / ringbuffer / frontend.h
index 6ff154528dd6e2b0d2c39e388a64193c0da7b135..42cf2af9add2486206d8e4d7cfc9867099abdb1d 100644 (file)
@@ -164,7 +164,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.023435 seconds and 4 git commands to generate.