Fix: namespace contexts !CONFIG_RCU_TLS variable initialization
[deliverable/lttng-ust.git] / liblttng-ust / lttng-context-cgroup-ns.c
index d4053150c5432bcec4ca3a4f4bd9e7142e2185bb..97af2759578473a1d9c95075221b24c9c564718d 100644 (file)
  * We cache the result to ensure we don't stat(2) the proc filesystem on
  * each event.
  */
+#ifdef CONFIG_RCU_TLS
 static DEFINE_URCU_TLS(ino_t, cached_cgroup_ns) = NS_INO_UNINITIALIZED;
+#else
+static DEFINE_URCU_TLS_INIT(ino_t, cached_cgroup_ns, NS_INO_UNINITIALIZED);
+#endif
 
 static
 ino_t get_cgroup_ns(void)
This page took 0.023287 seconds and 5 git commands to generate.