[PATCH 23.11] app/test: fix uninitialized event in DMA adapter test

Gao, DaxueX daxuex.gao at intel.com
Mon Apr 27 04:18:24 CEST 2026


Hi Shani,

Verified patch https://github.com/shanipr/dpdk-stable/commit/1d70f3c89ff60e50b18d1b90258c79e477cc076b on baseline f919fadc148d11f2ef(version: v23.11.7-rc1) Tested pass.
OS: Fedora43-64/6.17.1-300.fc43.x86_64
Compiler: clang 21.1.8 (Fedora 21.1.8-4.fc43)

Bug link: https://bugs.dpdk.org/show_bug.cgi?id=1937

Thanks,
Daxue Gao

> -----Original Message-----
> From: Shani Peretz <shperetz at nvidia.com>
> Sent: 2026年4月26日 15:26
> To: stable at dpdk.org; Gao, DaxueX <daxuex.gao at intel.com>
> Cc: ktraynor at redhat.com; thomas at monjalon.net; Shani Peretz
> <shperetz at nvidia.com>; Amit Prakash Shukla <amitprakashs at marvell.com>
> Subject: [PATCH 23.11] app/test: fix uninitialized event in DMA adapter test
> 
> Zero-initialize the event structure in configure_event_dma_adapter() to fix a
> clang build error with -Wuninitialized-const-pointer.
> 
> Fixes: a276e7c8fbb3 ("test/event: add DMA adapter auto-test")
> 
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>
> ---
>  app/test/test_event_dma_adapter.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/app/test/test_event_dma_adapter.c
> b/app/test/test_event_dma_adapter.c
> index d4646ee751..303c62d4c4 100644
> --- a/app/test/test_event_dma_adapter.c
> +++ b/app/test/test_event_dma_adapter.c
> @@ -557,7 +557,7 @@ configure_event_dma_adapter(enum
> rte_event_dma_adapter_mode mode)  {
>  	struct rte_event_dev_info evdev_info = {0};
>  	struct rte_event_port_conf conf = {0};
> -	struct rte_event event;
> +	struct rte_event event = {0};
>  	uint32_t cap;
>  	int ret;
> 
> --
> 2.34.1



More information about the stable mailing list