DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v1 1/3] app/test-eventdev: fix issues with clang 21.1.4
@ 2025-10-28 17:23 jerinj
  2025-10-28 17:23 ` [dpdk-dev] [PATCH v1 2/3] net/iavf: " jerinj
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: jerinj @ 2025-10-28 17:23 UTC (permalink / raw)
  To: Jerin Jacob, Amit Prakash Shukla, Pavan Nikhilesh
  Cc: dev, thomas, bruce.richardson, david.marchand, stable

From: Jerin Jacob <jerinj@marvell.com>

Fix the following error seen with clang 21.1.4

app/test-eventdev/test_perf_common.c:1340:30: error: variable
'event' is uninitialized when passed as a const pointer argument
here [-Werror,-Wuninitialized-const-pointer]

Fixes: b25a66c49e8d ("app/eventdev: add DMA adapter performance test")
Cc: stable@dpdk.org

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
---
 app/test-eventdev/test_perf_common.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/test_perf_common.c
index 2ad451e457..2bbc17ae96 100644
--- a/app/test-eventdev/test_perf_common.c
+++ b/app/test-eventdev/test_perf_common.c
@@ -1335,13 +1335,14 @@ perf_event_dma_adapter_setup(struct test_perf *t, struct prod_data *p)
 		return -ENOTSUP;
 	}
 
-	if (cap & RTE_EVENT_DMA_ADAPTER_CAP_INTERNAL_PORT_VCHAN_EV_BIND)
+	if (cap & RTE_EVENT_DMA_ADAPTER_CAP_INTERNAL_PORT_VCHAN_EV_BIND) {
+		event.queue_id = p->queue_id;
 		ret = rte_event_dma_adapter_vchan_add(TEST_PERF_DA_ID, p->da.dma_dev_id,
 						      p->da.vchan_id, &event);
-	else
+	} else {
 		ret = rte_event_dma_adapter_vchan_add(TEST_PERF_DA_ID, p->da.dma_dev_id,
 						      p->da.vchan_id, NULL);
-
+	}
 	return ret;
 }
 
-- 
2.51.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-10-29 13:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-28 17:23 [dpdk-dev] [PATCH v1 1/3] app/test-eventdev: fix issues with clang 21.1.4 jerinj
2025-10-28 17:23 ` [dpdk-dev] [PATCH v1 2/3] net/iavf: " jerinj
2025-10-29 10:01   ` Medvedkin, Vladimir
2025-10-29 13:13   ` David Marchand
2025-10-28 17:23 ` [dpdk-dev] [PATCH v1 3/3] app/test: " jerinj
2025-10-29  5:02   ` Amit Prakash Shukla
2025-10-29 13:19   ` David Marchand
2025-10-29  6:25 ` [dpdk-dev] [PATCH v1 1/3] app/test-eventdev: " Pavan Nikhilesh Bhagavatula
2025-10-29 13:11 ` David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).