From 422c59157ae5203ff884bed27e6ff5c30eb6cb7e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 15:20:57 -0400 Subject: [PATCH] wrapper: compiler.h: remove READ_ONCE/WRITE_ONCE wrappers --- wrapper/compiler.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/wrapper/compiler.h b/wrapper/compiler.h index 38974c06..16d41318 100644 --- a/wrapper/compiler.h +++ b/wrapper/compiler.h @@ -26,19 +26,6 @@ # 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 */ -- 2.34.1