From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: david.marchand@redhat.com,
Bruce Richardson <bruce.richardson@intel.com>,
stable@dpdk.org
Subject: [PATCH v10 02/21] test/func_reentrancy: fix args to EAL init call
Date: Wed, 8 Oct 2025 21:42:25 +0100 [thread overview]
Message-ID: <20251008204244.2288583-3-bruce.richardson@intel.com> (raw)
In-Reply-To: <20251008204244.2288583-1-bruce.richardson@intel.com>
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
next parent reply other threads:[~2025-10-08 20:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250520164025.2055721-1-bruce.richardson@intel.com>
[not found] ` <20251008204244.2288583-1-bruce.richardson@intel.com>
2025-10-08 20:42 ` Bruce Richardson [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251008204244.2288583-3-bruce.richardson@intel.com \
--to=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).