Fix: namespace contexts !CONFIG_RCU_TLS variable initialization
[lttng-ust.git] / liblttng-ust / lttng-context-uts-ns.c
index fb2d89f94bfa3ceee709fce0179e0dfb7c64a22e..778ccb46b31c657c3ac83c0f096c2c2f833b704f 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_uts_ns) = NS_INO_UNINITIALIZED;
+#else
+static DEFINE_URCU_TLS_INIT(ino_t, cached_uts_ns, NS_INO_UNINITIALIZED);
+#endif
 
 static
 ino_t get_uts_ns(void)
This page took 0.022656 seconds and 4 git commands to generate.