X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fcompiler.h;h=16d4131887317c513aef48d08b5346950020428b;hb=422c59157ae5203ff884bed27e6ff5c30eb6cb7e;hp=38974c062e0cc9428ee9541c7b8ac2fca736210c;hpb=f1f2e1141d41c5bb2d72bf3fd1cdceb9a1c0bc53;p=lttng-modules.git 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 */