X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=wrapper%2Fcompiler.h;h=16d4131887317c513aef48d08b5346950020428b;hb=0f4bb54a0c1b609c2a0c179699a23a37b6cee5be;hp=1496f33e3807821fd19ac72e76e7bf35aacacd1f;hpb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;p=lttng-modules.git diff --git a/wrapper/compiler.h b/wrapper/compiler.h index 1496f33e..16d41318 100644 --- a/wrapper/compiler.h +++ b/wrapper/compiler.h @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) * * 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 */