[PATCH 23.11] app/test: fix uninitialized event in DMA adapter test
Kevin Traynor
ktraynor at redhat.com
Wed Apr 29 10:24:13 CEST 2026
On 4/26/26 8:26 AM, Shani Peretz wrote:
> 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;
>
Acked-by: Kevin Traynor <ktraynor at redhat.com>
More information about the stable
mailing list