patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH v10 02/21] test/func_reentrancy: fix args to EAL init call
       [not found] ` <20251008204244.2288583-1-bruce.richardson@intel.com>
@ 2025-10-08 20:42   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2025-10-08 20:42 UTC (permalink / raw)
  To: dev; +Cc: david.marchand, Bruce Richardson, stable

The unit test for EAL init was passing in a NULL argv[0] value which is
invalid. Update to have a valid string for argv[0].

Fixes: 104a92bd026f ("app: add reentrancy tests")
Fixes: 978ead0144c1 ("test/func_reentrancy: fix EAL init call")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@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 f4c6cbc548..51e3069611 100644
--- a/app/test/test_func_reentrancy.c
+++ b/app/test/test_func_reentrancy.c
@@ -66,10 +66,11 @@ static RTE_ATOMIC(uint32_t) synchro;
  * rte_eal_init only init once
  */
 static int
-test_eal_init_once(void *arg)
+test_eal_init_once(__rte_unused void *arg)
 {
+	char appname[] = __FILE__;
 	unsigned lcore_self =  rte_lcore_id();
-	char *argv[] = { arg, NULL };
+	char *argv[] = { appname, NULL };
 
 	WAIT_SYNCHRO_FOR_WORKERS();
 
-- 
2.48.1


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

* [PATCH v11 02/21] test/func_reentrancy: fix args to EAL init call
       [not found] ` <20251009130056.2630343-1-bruce.richardson@intel.com>
@ 2025-10-09 13:00   ` Bruce Richardson
  2025-10-14  8:35     ` David Marchand
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2025-10-09 13:00 UTC (permalink / raw)
  To: dev; +Cc: david.marchand, Bruce Richardson, stable

The unit test for EAL init was passing in a NULL argv[0] value which is
invalid. Update to have a valid string for argv[0].

Fixes: 104a92bd026f ("app: add reentrancy tests")
Fixes: 978ead0144c1 ("test/func_reentrancy: fix EAL init call")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@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 f4c6cbc548..51e3069611 100644
--- a/app/test/test_func_reentrancy.c
+++ b/app/test/test_func_reentrancy.c
@@ -66,10 +66,11 @@ static RTE_ATOMIC(uint32_t) synchro;
  * rte_eal_init only init once
  */
 static int
-test_eal_init_once(void *arg)
+test_eal_init_once(__rte_unused void *arg)
 {
+	char appname[] = __FILE__;
 	unsigned lcore_self =  rte_lcore_id();
-	char *argv[] = { arg, NULL };
+	char *argv[] = { appname, NULL };
 
 	WAIT_SYNCHRO_FOR_WORKERS();
 
-- 
2.48.1


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

* Re: [PATCH v11 02/21] test/func_reentrancy: fix args to EAL init call
  2025-10-09 13:00   ` [PATCH v11 " Bruce Richardson
@ 2025-10-14  8:35     ` David Marchand
  0 siblings, 0 replies; 3+ messages in thread
From: David Marchand @ 2025-10-14  8:35 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev, stable

On Thu, 9 Oct 2025 at 15:01, Bruce Richardson
<bruce.richardson@intel.com> wrote:
>
> The unit test for EAL init was passing in a NULL argv[0] value which is
> invalid. Update to have a valid string for argv[0].
>
> Fixes: 104a92bd026f ("app: add reentrancy tests")
> Fixes: 978ead0144c1 ("test/func_reentrancy: fix EAL init call")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>

Reviewed-by: David Marchand <david.marchand@redhat.com>


-- 
David Marchand


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

end of thread, other threads:[~2025-10-14  8:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20250520164025.2055721-1-bruce.richardson@intel.com>
     [not found] ` <20251008204244.2288583-1-bruce.richardson@intel.com>
2025-10-08 20:42   ` [PATCH v10 02/21] test/func_reentrancy: fix args to EAL init call Bruce Richardson
     [not found] ` <20251009130056.2630343-1-bruce.richardson@intel.com>
2025-10-09 13:00   ` [PATCH v11 " Bruce Richardson
2025-10-14  8:35     ` 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).