From: Cheryl Bansal <cheryl.bansal@altera.com>
To: dev@dpdk.org
Cc: Cheryl Bansal <cheryl.bansal@altera.com>
Subject: [PATCH 03/12] dma/skeleton: fix minsize build
Date: Mon, 30 Nov 2026 14:01:34 +0530 [thread overview]
Message-ID: <20261130083143.1629652-4-cheryl.bansal@altera.com> (raw)
In-Reply-To: <20261130083143.1629652-1-cheryl.bansal@altera.com>
This error is seen in build of type "minsize":
drivers/dma/skeleton/skeleton_dmadev.c:439:24: error:
'desc' may be used uninitialized [-Werror=maybe-uninitialized]
It looks to be a compiler issue because we return -ENOSPC
if rte_ring_dequeue() fails, before using the descriptor.
The variables are initialized to allow compiling with "minsize" option.
Fixes: 05d5fc66a269 ("dma/skeleton: introduce skeleton driver")
Fixes: e1d7b79a246c ("dma/skeleton: support scatter-gather copy")
Fixes: 0335480f5bac ("dma/skeleton: support fill operation")
Signed-off-by: Cheryl Bansal <cheryl.bansal@altera.com>
---
drivers/dma/skeleton/skeleton_dmadev.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/dma/skeleton/skeleton_dmadev.c b/drivers/dma/skeleton/skeleton_dmadev.c
index e287802eb9..b5c7155fc7 100644
--- a/drivers/dma/skeleton/skeleton_dmadev.c
+++ b/drivers/dma/skeleton/skeleton_dmadev.c
@@ -423,7 +423,7 @@ skeldma_copy(void *dev_private, uint16_t vchan,
uint32_t length, uint64_t flags)
{
struct skeldma_hw *hw = dev_private;
- struct skeldma_desc *desc;
+ struct skeldma_desc *desc = NULL;
int ret;
RTE_SET_USED(vchan);
@@ -454,7 +454,7 @@ skeldma_copy_sg(void *dev_private, uint16_t vchan,
uint64_t flags)
{
struct skeldma_hw *hw = dev_private;
- struct skeldma_desc *desc;
+ struct skeldma_desc *desc = NULL;
int ret;
RTE_SET_USED(vchan);
@@ -483,7 +483,7 @@ skeldma_fill(void *dev_private, uint16_t vchan,
uint32_t length, uint64_t flags)
{
struct skeldma_hw *hw = dev_private;
- struct skeldma_desc *desc;
+ struct skeldma_desc *desc = NULL;
int ret;
RTE_SET_USED(vchan);
--
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 ` [PATCH 01/12] member: " Cheryl Bansal
2026-11-30 8:31 ` [PATCH 02/12] mempool/bucket: " Cheryl Bansal
2026-11-30 8:31 ` Cheryl Bansal [this message]
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-4-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