From: Mathieu Desnoyers Date: Thu, 9 Apr 2020 15:26:31 +0000 (-0400) Subject: tls-compat.h: introduce DEFINE_URCU_TLS_INIT X-Git-Tag: v0.12.0~1 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=cb1f3ebfa99c3d49962fa2421ea3ae33d8dad757;hp=cb1f3ebfa99c3d49962fa2421ea3ae33d8dad757 tls-compat.h: introduce DEFINE_URCU_TLS_INIT 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 ---