DPDK patches and discussions
 help / color / mirror / Atom feed
From: Patrick Robb <probb@iol.unh.edu>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: dev@dpdk.org
Subject: Re: [PATCH v3 3/3] bbdev: fix build with MinGW 13
Date: Tue, 16 Sep 2025 09:14:20 -0400	[thread overview]
Message-ID: <CAJvnSUB0XahBTnvtwQXqxhe8vg2MTTGBZZ=whZhahXPLNJBVJw@mail.gmail.com> (raw)
In-Reply-To: <20250908212034.699713-4-thomas@monjalon.net>

[-- Attachment #1: Type: text/plain, Size: 2519 bytes --]

FYI The DTS failure for this series on patchwork for the MTU testsuite is
coming from a different patch than this one. Once I have that resolved, I
will put in a retest for this series which will clear up that MTU testsuite
failure.

On Mon, Sep 8, 2025 at 5:21 PM Thomas Monjalon <thomas@monjalon.net> wrote:

> After an upgrade to MinGW version 13, compilation breaks:
>
> In function 'rte_bbdev_queue_ops_dump':
> lib/bbdev/rte_bbdev.c:1269:63: error:
>         '%s' directive argument is null [-Werror=format-overflow=]
>         fprintf(f, "  Enqueue Status Counters %s %" PRIu64 "\n",
>
> The enqueue status string may be null if the index is too high,
> because RTE_BBDEV_ENQ_STATUS_SIZE_MAX is defined to include
> padding for future enum insertion.
> This padding case must be checked
> to avoid printing a dump of a non-existing status.
>
> Fixes: 353e3639d458 ("bbdev: add queue debug dump")
> Cc: stable@dpdk.org
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> ---
> v2: make status_str variable local
> ---
>  lib/bbdev/rte_bbdev.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/lib/bbdev/rte_bbdev.c b/lib/bbdev/rte_bbdev.c
> index e0f8c8eb0d..e76124532d 100644
> --- a/lib/bbdev/rte_bbdev.c
> +++ b/lib/bbdev/rte_bbdev.c
> @@ -1264,11 +1264,15 @@ rte_bbdev_queue_ops_dump(uint16_t dev_id, uint16_t
> queue_id, FILE *f)
>                         dev->data->name, queue_id);
>         fprintf(f, "  Last Enqueue Status %s\n",
>
> rte_bbdev_enqueue_status_str(q_data->enqueue_status));
> -       for (i = 0; i < RTE_BBDEV_ENQ_STATUS_SIZE_MAX; i++)
> +       for (i = 0; i < RTE_BBDEV_ENQ_STATUS_SIZE_MAX; i++) {
> +               const char *status_str = rte_bbdev_enqueue_status_str(i);
> +               if (status_str == NULL)
> +                       continue;
>                 if (q_data->queue_stats.enqueue_status_count[i] > 0)
>                         fprintf(f, "  Enqueue Status Counters %s %" PRIu64
> "\n",
> -                                       rte_bbdev_enqueue_status_str(i),
> +                                       status_str,
>
> q_data->queue_stats.enqueue_status_count[i]);
> +       }
>         stats = &dev->data->queues[queue_id].queue_stats;
>
>         fprintf(f, "  Enqueue Count %" PRIu64 " Warning %" PRIu64 " Error
> %" PRIu64 "\n",
> --
> 2.51.0
>
>

[-- Attachment #2: Type: text/html, Size: 3539 bytes --]

  parent reply	other threads:[~2025-09-16 13:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-13 15:25 [PATCH 0/3] " Thomas Monjalon
2025-08-13 15:25 ` [PATCH 1/3] bus/pci: " Thomas Monjalon
2025-08-13 15:25 ` [PATCH 2/3] net/mlx5: " Thomas Monjalon
2025-08-14  9:50   ` Dariusz Sosnowski
2025-08-13 15:25 ` [PATCH 3/3] bbdev: wrong fix for " Thomas Monjalon
2025-08-19 13:51   ` Bruce Richardson
2025-08-15 15:22 ` [PATCH 0/3] fix build with " Patrick Robb
2025-08-19 13:54 ` Bruce Richardson
2025-08-27 15:16 ` [PATCH v2 " Thomas Monjalon
2025-08-27 15:16   ` [PATCH v2 1/3] bus/pci: " Thomas Monjalon
2025-08-27 15:16   ` [PATCH v2 2/3] net/mlx5: " Thomas Monjalon
2025-08-27 15:16   ` [PATCH v2 3/3] bbdev: wrong fix for " Thomas Monjalon
2025-08-29  5:36     ` Hemant Agrawal
2025-09-08  9:35   ` [PATCH v2 0/3] fix build with " Thomas Monjalon
2025-09-08 12:18     ` Thomas Monjalon
2025-09-08 21:17 ` [PATCH v3 " Thomas Monjalon
2025-09-08 21:17   ` [PATCH v3 1/3] bus/pci: " Thomas Monjalon
2025-09-10 12:59     ` Thomas Monjalon
2025-09-08 21:17   ` [PATCH v3 2/3] net/mlx5: " Thomas Monjalon
2025-09-08 21:17   ` [PATCH v3 3/3] bbdev: " Thomas Monjalon
2025-09-10 13:00     ` Thomas Monjalon
2025-09-16 13:14     ` Patrick Robb [this message]
2025-09-10 11:15 ` [PATCH 0/3] " Ali Alnubani

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='CAJvnSUB0XahBTnvtwQXqxhe8vg2MTTGBZZ=whZhahXPLNJBVJw@mail.gmail.com' \
    --to=probb@iol.unh.edu \
    --cc=dev@dpdk.org \
    --cc=thomas@monjalon.net \
    /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).