From 448ecf97586de63da7d7fac1ea24f0f0fa381336 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 2 Jun 2026 10:23:58 +0200 Subject: [PATCH] providers/efa: Fix build failure when LTTNG is enabled When LTTNG tracing is enabled, compiling providers/efa/verbs.c fails with an incompatible type error. The post_send rdma_tracepoint macro attempts to pass qp->sq by value to efa_wqe_get_data_length(), which strictly expects a pointer (struct efa_sq *). Fix the error by passing the address of the struct instead. Signed-off-by: Florian Schmaus --- providers/efa/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/efa/verbs.c b/providers/efa/verbs.c index 09604a4fb..f7dd9bb26 100644 --- a/providers/efa/verbs.c +++ b/providers/efa/verbs.c @@ -2923,7 +2923,7 @@ static void efa_send_wr_set_addr(struct ibv_qp_ex *ibvqpx, rdma_tracepoint(rdma_core_efa, post_send, qp->dev->name, ibvqpx->wr_id, EFA_GET(&md->ctrl1, EFA_IO_TX_META_DESC_OP_TYPE), ibvqpx->qp_base.qp_num, remote_qpn, ah->efa_ah, - efa_wqe_get_data_length(qp->sq)); + efa_wqe_get_data_length(&qp->sq)); } static void efa_send_wr_set_processing_hints(struct efadv_qp *efadv_qp, uint32_t hints)