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: I6c45b7d5138152728f67885ac5cc00ea1bc1603a
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
static void destroy_id_tracker_node_rcu(struct rcu_head *head)
{
- struct ust_id_tracker_node *tracker_node =
- caa_container_of(head, struct ust_id_tracker_node, node.head);
+ auto *wrapper_node = lttng::utils::container_of(head, <tng_ht_node_ulong::head);
+ auto *tracker_node = lttng::utils::container_of(wrapper_node, &ust_id_tracker_node::node);
+
free(tracker_node);
}