Acked-by: Amit Prakash Shukla <[email protected]> Thanks
> -----Original Message----- > From: [email protected] <[email protected]> > Sent: Tuesday, October 28, 2025 10:53 PM > To: Amit Prakash Shukla <[email protected]>; Jerin Jacob > <[email protected]>; Sunil Kumar Kori <[email protected]>; Ankur Dwivedi > <[email protected]>; Morten Brørup <[email protected]>; > Ferruh Yigit <[email protected]> > Cc: [email protected]; [email protected]; [email protected]; > [email protected]; [email protected] > Subject: [dpdk-dev] [PATCH v1 3/3] app/test: fix issues with clang 21.1.4 > > From: Jerin Jacob <[email protected]> > > Fix the following errors seen with clang 21.1.4 > > app/test/test_event_dma_adapter.c:532:32: error: variable 'event' is > uninitialized when passed as a const pointer argument here [-Werror,- > Wuninitialized-const-pointer] > > app/test/test_trace.c:201:29: error: variable 'tmp' is uninitialized when > passed > as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] > > Fixes: 4925e15a1614 ("trace: add trace point emit for blob") > Fixes: a276e7c8fbb3 ("test/event: add DMA adapter auto-test") > Cc: [email protected] > > Signed-off-by: Jerin Jacob <[email protected]> > --- > app/test/test_event_dma_adapter.c | 2 ++ > app/test/test_trace.c | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/app/test/test_event_dma_adapter.c > b/app/test/test_event_dma_adapter.c > index 7f72a4e81d..4df5991285 100644 > --- a/app/test/test_event_dma_adapter.c > +++ b/app/test/test_event_dma_adapter.c > @@ -144,6 +144,7 @@ test_dma_adapter_params(void) > TEST_ASSERT_SUCCESS(err, "Failed to get adapter capabilities\n"); > > if (cap & > RTE_EVENT_DMA_ADAPTER_CAP_INTERNAL_PORT_VCHAN_EV_BIND) { > + event.queue_id = 0; > err = rte_event_dma_adapter_vchan_add(TEST_ADAPTER_ID, > TEST_DMA_DEV_ID, > > TEST_DMA_VCHAN_ID, &event); > } else > @@ -528,6 +529,7 @@ test_dma_adapter_vchan_add_del(void) > TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n"); > > if (cap & > RTE_EVENT_DMA_ADAPTER_CAP_INTERNAL_PORT_VCHAN_EV_BIND) { > + event.queue_id = 0; > ret = rte_event_dma_adapter_vchan_add(TEST_ADAPTER_ID, > TEST_DMA_DEV_ID, > > TEST_DMA_VCHAN_ID, &event); > } else > diff --git a/app/test/test_trace.c b/app/test/test_trace.c index > 8ea1443044..52b5ba5cbb 100644 > --- a/app/test/test_trace.c > +++ b/app/test/test_trace.c > @@ -179,7 +179,7 @@ static int > test_generic_trace_points(void) > { > uint8_t arr[RTE_TRACE_BLOB_LEN_MAX]; > - int tmp; > + int tmp = 0; > int i; > > for (i = 0; i < RTE_TRACE_BLOB_LEN_MAX; i++) > -- > 2.51.2

