caa_container_of makes use of offsetof which is conditionally
supported for non-POD types. Replace its use by
lttng::utils::container_of.
Change-Id: I0fb69c7132665ea0ee3067445884ec1115ba9872
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
static void rcu_destroy_session(struct rcu_head *rcu_head)
{
- struct relay_session *session = caa_container_of(rcu_head, struct relay_session, rcu_node);
+ auto *session = lttng::utils::container_of(rcu_head, &relay_session::rcu_node);
/*
* Since each trace has a reference on the session, it means
* that if we are at the point where we teardown the session, no