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: Ied676a7003749a82b0ae4eeb8a1bcedb0e081673
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
static void viewer_stream_release(struct urcu_ref *ref)
{
- struct relay_viewer_stream *vstream =
- caa_container_of(ref, struct relay_viewer_stream, ref);
+ auto *vstream = lttng::utils::container_of(ref, &relay_viewer_stream::ref);
if (vstream->stream->is_metadata) {
rcu_assign_pointer(vstream->stream->trace->viewer_metadata_stream, NULL);