wrapper: compiler.h: remove READ_ONCE/WRITE_ONCE wrappers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 19:20:57 +0000 (15:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 19:28:14 +0000 (15:28 -0400)
wrapper/compiler.h

index 38974c062e0cc9428ee9541c7b8ac2fca736210c..16d4131887317c513aef48d08b5346950020428b 100644 (file)
 # endif
 #endif
 
-/*
- * READ/WRITE_ONCE were introduced in kernel 3.19 and ACCESS_ONCE
- * was removed in 4.15. Prefer READ/WRITE but fallback to ACCESS
- * when they are not available.
- */
-#ifndef READ_ONCE
-# define READ_ONCE(x)          ACCESS_ONCE(x)
-#endif
-
-#ifndef WRITE_ONCE
-# define WRITE_ONCE(x, val)    ({ ACCESS_ONCE(x) = val; })
-#endif
-
 #define __LTTNG_COMPOUND_LITERAL(type, ...)    (type[]) { __VA_ARGS__ }
 
 #endif /* _LTTNG_WRAPPER_COMPILER_H */
This page took 0.025626 seconds and 4 git commands to generate.