X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Fcompiler.h;h=16d4131887317c513aef48d08b5346950020428b;hb=1c6722fbd85d139bffcd6fbeaffba177bdf251e0;hp=d0d63d7b2c5401dfef0fe14c620e2c30c1370f45;hpb=b7cdc18250880cc44edeef4a4b42c8ac7a135a6d;p=lttng-modules.git diff --git a/wrapper/compiler.h b/wrapper/compiler.h index d0d63d7b..16d41318 100644 --- a/wrapper/compiler.h +++ b/wrapper/compiler.h @@ -26,17 +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 */