wrapper: remove rcu list traversal wrapper
[lttng-modules.git] / wrapper / compiler.h
index 1496f33e3807821fd19ac72e76e7bf35aacacd1f..16d4131887317c513aef48d08b5346950020428b 100644 (file)
@@ -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
  *
 # 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.023684 seconds and 4 git commands to generate.