On Wed, Jul 23, 2025 at 03:31:54PM +0200, David Marchand wrote:
> ../lib/eal/common/eal_common_options.c:1638:16: runtime error:
>       null pointer passed as argument 2, which is declared to never be null
> 
> Signed-off-by: David Marchand <david.march...@redhat.com>
Acked-by: Bruce Richardson <bruce.richard...@intel.com>

> ---
>  app/test/test_func_reentrancy.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/app/test/test_func_reentrancy.c b/app/test/test_func_reentrancy.c
> index 34d685d493..f4c6cbc548 100644
> --- a/app/test/test_func_reentrancy.c
> +++ b/app/test/test_func_reentrancy.c
> @@ -66,15 +66,16 @@ static RTE_ATOMIC(uint32_t) synchro;
>   * rte_eal_init only init once
>   */
>  static int
> -test_eal_init_once(__rte_unused void *arg)
> +test_eal_init_once(void *arg)
>  {
>       unsigned lcore_self =  rte_lcore_id();
> +     char *argv[] = { arg, NULL };
>  
>       WAIT_SYNCHRO_FOR_WORKERS();
>  
>       /* silent the check in the caller */
>       rte_atomic_store_explicit(&obj_count, 1, rte_memory_order_relaxed);
> -     if (rte_eal_init(0, NULL) != -1)
> +     if (rte_eal_init(RTE_DIM(argv) - 1, argv) != -1)
>               return -1;
>  
>       return 0;
> -- 
> 2.50.0
> 

Reply via email to