From: Jérémie Galarneau Date: Mon, 22 Jul 2024 19:12:15 +0000 (+0000) Subject: sessiond: ust_error_accounting_entry: use lttng::utils::container_of X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3fdd08e651f9e45f5183e301bac2a42bf25a6cd6;p=lttng-tools.git sessiond: ust_error_accounting_entry: use lttng::utils::container_of 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: I8b9167ad2e8100ed9a9f99d2ef23a8859713838d Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp b/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp index f9f685176..27d049601 100644 --- a/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp +++ b/src/bin/lttng-sessiond/event-notifier-error-accounting.cpp @@ -339,7 +339,7 @@ static struct ust_error_accounting_entry *ust_error_accounting_entry_find(struct } else { bool got_ref; - entry = caa_container_of(node, struct ust_error_accounting_entry, node); + entry = lttng::utils::container_of(node, &ust_error_accounting_entry::node); got_ref = ust_error_accounting_entry_get(entry); if (!got_ref) {