wrapper: compiler.h: remove READ_ONCE/WRITE_ONCE wrappers
[lttng-modules.git] / 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.022732 seconds and 4 git commands to generate.