Cleanup: use DEFINE_URCU_TLS_INIT for all CONFIG_RCU_TLS configurations
[lttng-ust.git] / liblttng-ust / lttng-context-cgroup-ns.c
index d4053150c5432bcec4ca3a4f4bd9e7142e2185bb..a6aca3abf60b3267599ef46473c43c02a95b3a36 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
@@ -38,7 +39,7 @@
  * We cache the result to ensure we don't stat(2) the proc filesystem on
  * each event.
  */
-static DEFINE_URCU_TLS(ino_t, cached_cgroup_ns) = NS_INO_UNINITIALIZED;
+static DEFINE_URCU_TLS_INIT(ino_t, cached_cgroup_ns, NS_INO_UNINITIALIZED);
 
 static
 ino_t get_cgroup_ns(void)
This page took 0.022837 seconds and 4 git commands to generate.