tls-compat.h: introduce DEFINE_URCU_TLS_INIT
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:26:31 +0000 (11:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Apr 2020 15:26:31 +0000 (11:26 -0400)
DEFINE_URCU_TLS() cannot be used in this way for !CONFIG_RCU_TLS:

  DEFINE_URCU_TLS(ino_t, cached_net_ns) = NS_INO_UNINITIALIZED;

Introduce a new DEFINE_URCU_TLS_INIT which allows expressing a nonzero
intial value:

  DEFINE_URCU_TLS_INIT(ino_t, cached_net_ns, NS_INO_UNINITIALIZED);

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.024597 seconds and 4 git commands to generate.