Fix: namespace contexts !CONFIG_RCU_TLS variable initialization
[deliverable/lttng-ust.git] / liblttng-ust / lttng-context-net-ns.c
index 9d6ded12965d5213b6995cbff5705258e6a534d9..c0aaa9d4a7d57ccdbe4c626d890f5b1c4a9c583f 100644 (file)
 #include "lttng-tracer-core.h"
 #include "ns.h"
 
-
 /*
  * 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_net_ns) = NS_INO_UNINITIALIZED;
+#else
+static DEFINE_URCU_TLS_INIT(ino_t, cached_net_ns, NS_INO_UNINITIALIZED);
+#endif
 
 static
 ino_t get_net_ns(void)
This page took 0.0237 seconds and 5 git commands to generate.