From: Cheryl Bansal <cheryl.bansal@altera.com>
To: dev@dpdk.org
Cc: Cheryl Bansal <cheryl.bansal@altera.com>
Subject: [PATCH 01/12] member: fix minsize build
Date: Mon, 30 Nov 2026 14:01:32 +0530 [thread overview]
Message-ID: <20261130083143.1629652-2-cheryl.bansal@altera.com> (raw)
In-Reply-To: <20261130083143.1629652-1-cheryl.bansal@altera.com>
This error is seen in build of type "minsize":
In function 'rte_member_minheap_insert_node':
lib/member/rte_member_heap.h:264:48: error:
'slot_id' may be used uninitialized [-Werror=maybe-uninitialized]
It looks to be a compiler issue because we return early
if rte_ring_sc_dequeue_elem() fails, so slot_id is always set.
The variable is initialized to allow compiling with "minsize" option.
Fixes: db354bd2e1f8 ("member: add NitroSketch mode")
Signed-off-by: Cheryl Bansal <cheryl.bansal@altera.com>
---
lib/member/rte_member_heap.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/member/rte_member_heap.h b/lib/member/rte_member_heap.h
index d551c85a75..4c9fd8bca2 100644
--- a/lib/member/rte_member_heap.h
+++ b/lib/member/rte_member_heap.h
@@ -253,7 +253,7 @@ rte_member_minheap_insert_node(struct minheap *hp, const void *key,
struct rte_ring *free_key_slot)
{
struct node nd;
- uint32_t slot_id;
+ uint32_t slot_id = 0;
if (rte_ring_sc_dequeue_elem(free_key_slot, &slot_id, sizeof(uint32_t)) != 0) {
MEMBER_LOG(ERR, "Minheap get empty keyslot failed");
--
2.43.0
next prev parent reply other threads:[~2026-11-30 8:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 8:31 [PATCH 00/12] fix minsize build Cheryl Bansal
2026-11-30 8:31 ` Cheryl Bansal [this message]
2026-11-30 8:31 ` [PATCH 02/12] mempool/bucket: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 03/12] dma/skeleton: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 04/12] dma/dpaa: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 05/12] net/softnic: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 06/12] net/nfp: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 07/12] net/pcap: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 08/12] net/mlx5: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 09/12] crypto/mlx5: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 10/12] crypto/ccp: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 11/12] common/cnxk: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 12/12] test/bonding: " Cheryl Bansal
2026-11-30 18:03 ` [PATCH 00/12] " Stephen Hemminger
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=20261130083143.1629652-2-cheryl.bansal@altera.com \
--to=cheryl.bansal@altera.com \
--cc=dev@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