From: <jerinj@marvell.com>
To: Vladimir Medvedkin <vladimir.medvedkin@intel.com>,
Yiding Zhou <yidingx.zhou@intel.com>,
Qi Zhang <qi.z.zhang@intel.com>
Cc: <dev@dpdk.org>, <thomas@monjalon.net>,
<bruce.richardson@intel.com>, <david.marchand@redhat.com>,
Jerin Jacob <jerinj@marvell.com>, <stable@dpdk.org>
Subject: [dpdk-dev] [PATCH v1 2/3] net/iavf: fix issues with clang 21.1.4
Date: Tue, 28 Oct 2025 22:53:22 +0530 [thread overview]
Message-ID: <20251028172324.3149379-2-jerinj@marvell.com> (raw)
In-Reply-To: <20251028172324.3149379-1-jerinj@marvell.com>
From: Jerin Jacob <jerinj@marvell.com>
Fix the following error seen with clang 21.1.4
drivers/net/intel/iavf/iavf_vchnl.c:123:38: error: variable
'notify_byte' is uninitialized when passed as a const pointer
argument here [-Werror,-Wuninitialized-const-pointer]
Fixes: cb5c1b91f76f ("net/iavf: add thread for event callbacks")
Cc: stable@dpdk.org
Signed-off-by: Jerin Jacob <jerinj@marvell.com>
---
drivers/net/intel/iavf/iavf_vchnl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/intel/iavf/iavf_vchnl.c b/drivers/net/intel/iavf/iavf_vchnl.c
index 460035d772..9ad39300c6 100644
--- a/drivers/net/intel/iavf/iavf_vchnl.c
+++ b/drivers/net/intel/iavf/iavf_vchnl.c
@@ -102,7 +102,7 @@ iavf_dev_event_post(struct rte_eth_dev *dev,
void *param, size_t param_alloc_size)
{
struct iavf_event_handler *handler = &event_handler;
- char notify_byte;
+ char notify_byte = 0;
struct iavf_event_element *elem = rte_malloc(NULL, sizeof(*elem) + param_alloc_size, 0);
if (!elem)
return;
--
2.51.2
next prev parent reply other threads:[~2025-10-28 17:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 17:23 [dpdk-dev] [PATCH v1 1/3] app/test-eventdev: " jerinj
2025-10-28 17:23 ` jerinj [this message]
2025-10-29 10:01 ` [dpdk-dev] [PATCH v1 2/3] net/iavf: " Medvedkin, Vladimir
2025-10-29 13:13 ` David Marchand
2025-10-28 17:23 ` [dpdk-dev] [PATCH v1 3/3] app/test: " jerinj
2025-10-29 5:02 ` Amit Prakash Shukla
2025-10-29 13:19 ` David Marchand
2025-10-29 6:25 ` [dpdk-dev] [PATCH v1 1/3] app/test-eventdev: " Pavan Nikhilesh Bhagavatula
2025-10-29 13:11 ` 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=20251028172324.3149379-2-jerinj@marvell.com \
--to=jerinj@marvell.com \
--cc=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=qi.z.zhang@intel.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
--cc=vladimir.medvedkin@intel.com \
--cc=yidingx.zhou@intel.com \
/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).