All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Gagandeep Singh <G.Singh@nxp.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Hemant Agrawal <hemant.agrawal@nxp.com>
Subject: Re: [PATCH 00/11] NXP DPAA2 driver enhancements and fixes
Date: Thu, 17 Jul 2025 09:58:36 -0700	[thread overview]
Message-ID: <20250717095836.503111f9@hermes.local> (raw)
In-Reply-To: <AS8PR04MB81984927114BE947589A905EE146A@AS8PR04MB8198.eurprd04.prod.outlook.com>

Too late for 25.07 now. But will put in next-net for 25.11

I notice if shadow declaration warning is enabled, lots of
warning occur.


In file included from ../drivers/net/dpaa2/dpaa2_ethdev.c:26:
../drivers/net/dpaa2/dpaa2_ethdev.c: In function ‘dpaa2_alloc_rx_tx_queues’:
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:207:13: warning: declaration of ‘ret’ shadows a previous local [-Wshadow]
  207 |         int ret = 0, i; \
      |             ^~~
../drivers/net/dpaa2/dpaa2_ethdev.c:393:23: note: in expansion of macro ‘dpaa2_queue_storage_alloc’
  393 |                 ret = dpaa2_queue_storage_alloc(dpaa2_q,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:16: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |                ^~~
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:207:22: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  207 |         int ret = 0, i; \
      |                      ^
../drivers/net/dpaa2/dpaa2_ethdev.c:393:23: note: in expansion of macro ‘dpaa2_queue_storage_alloc’
  393 |                 ret = dpaa2_queue_storage_alloc(dpaa2_q,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:13: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |             ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:207:13: warning: declaration of ‘ret’ shadows a previous local [-Wshadow]
  207 |         int ret = 0, i; \
      |             ^~~
../drivers/net/dpaa2/dpaa2_ethdev.c:408:23: note: in expansion of macro ‘dpaa2_queue_storage_alloc’
  408 |                 ret = dpaa2_queue_storage_alloc(dpaa2_q,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:16: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |                ^~~
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:207:22: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  207 |         int ret = 0, i; \
      |                      ^
../drivers/net/dpaa2/dpaa2_ethdev.c:408:23: note: in expansion of macro ‘dpaa2_queue_storage_alloc’
  408 |                 ret = dpaa2_queue_storage_alloc(dpaa2_q,
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:13: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |             ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:207:13: warning: declaration of ‘ret’ shadows a previous local [-Wshadow]
  207 |         int ret = 0, i; \
      |             ^~~
../drivers/net/dpaa2/dpaa2_ethdev.c:435:31: note: in expansion of macro ‘dpaa2_queue_storage_alloc’
  435 |                         ret = dpaa2_queue_storage_alloc(dpaa2_q,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:16: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |                ^~~
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:207:22: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  207 |         int ret = 0, i; \
      |                      ^
../drivers/net/dpaa2/dpaa2_ethdev.c:435:31: note: in expansion of macro ‘dpaa2_queue_storage_alloc’
  435 |                         ret = dpaa2_queue_storage_alloc(dpaa2_q,
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:13: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |             ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:226:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  226 |         int i; \
      |             ^
../drivers/net/dpaa2/dpaa2_ethdev.c:455:17: note: in expansion of macro ‘dpaa2_queue_storage_free’
  455 |                 dpaa2_queue_storage_free(dpaa2_q, RTE_MAX_LCORE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:13: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |             ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:226:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  226 |         int i; \
      |             ^
../drivers/net/dpaa2/dpaa2_ethdev.c:472:17: note: in expansion of macro ‘dpaa2_queue_storage_free’
  472 |                 dpaa2_queue_storage_free(dpaa2_q, RTE_MAX_LCORE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:13: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |             ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:226:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  226 |         int i; \
      |             ^
../drivers/net/dpaa2/dpaa2_ethdev.c:478:17: note: in expansion of macro ‘dpaa2_queue_storage_free’
  478 |                 dpaa2_queue_storage_free(dpaa2_q, RTE_MAX_LCORE);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:372:13: note: shadowed declaration is here
  372 |         int i, ret = 0;
      |             ^
../drivers/net/dpaa2/dpaa2_ethdev.c: In function ‘dpaa2_free_rx_tx_queues’:
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:226:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  226 |         int i; \
      |             ^
../drivers/net/dpaa2/dpaa2_ethdev.c:499:25: note: in expansion of macro ‘dpaa2_queue_storage_free’
  499 |                         dpaa2_queue_storage_free(dpaa2_q,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:490:13: note: shadowed declaration is here
  490 |         int i;
      |             ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:226:13: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  226 |         int i; \
      |             ^
../drivers/net/dpaa2/dpaa2_ethdev.c:511:33: note: in expansion of macro ‘dpaa2_queue_storage_free’
  511 |                                 dpaa2_queue_storage_free(dpaa2_q,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/dpaa2/dpaa2_ethdev.c:490:13: note: shadowed declaration is here
  490 |         int i;
      |             ^
[50/168] Compiling C object drivers/li...net_dpaa2.a.p/net_dpaa2_dpaa2_rxtx.c.o
../drivers/net/dpaa2/dpaa2_rxtx.c: In function ‘dpaa2_dev_tx’:
../drivers/net/dpaa2/dpaa2_rxtx.c:1393:37: warning: declaration of ‘ret’ shadows a previous local [-Wshadow]
 1393 |                                 int ret = rte_vlan_insert(bufs);
      |                                     ^~~
../drivers/net/dpaa2/dpaa2_rxtx.c:1250:17: note: shadowed declaration is here
 1250 |         int32_t ret;

      reply	other threads:[~2025-07-17 16:58 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-30  7:13 [PATCH 00/11] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-05-30  7:13 ` [PATCH 01/11] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-05-30  7:13 ` [PATCH 02/11] net/dpaa2: fix shaper rate Gagandeep Singh
2025-05-30  7:13 ` [PATCH 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-05-30  7:13 ` [PATCH 04/11] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-05-30  7:13 ` [PATCH 05/11] net/dpaa2: add dpmac MC header file Gagandeep Singh
2025-05-30  7:13 ` [PATCH 06/11] net/dpaa2: support dpmac counters in stats Gagandeep Singh
2025-05-30  7:13 ` [PATCH 07/11] net/dpaa2: support dpmac Tx stats Gagandeep Singh
2025-05-30  7:13 ` [PATCH 08/11] net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh
2025-05-30  7:13 ` [PATCH 09/11] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-05-30  7:13 ` [PATCH 10/11] net/dpaa2: setup the speed cap based on the actual MAC Gagandeep Singh
2025-05-30  7:13 ` [PATCH 11/11] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-06-02 10:40 ` [PATCH v2 00/11] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 01/11] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 02/11] net/dpaa2: fix shaper rate Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 04/11] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 05/11] net/dpaa2: add dpmac MC header file Gagandeep Singh
2025-06-04 20:01     ` Stephen Hemminger
2025-06-02 10:40   ` [PATCH v2 06/11] net/dpaa2: support dpmac counters in stats Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 07/11] net/dpaa2: support dpmac Tx stats Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 08/11] net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 09/11] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 10/11] net/dpaa2: setup the speed cap based on the actual MAC Gagandeep Singh
2025-06-02 10:40   ` [PATCH v2 11/11] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-06-09  2:54   ` [PATCH v3 00/11] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 01/11] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 02/11] net/dpaa2: fix shaper rate Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 04/11] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 05/11] net/dpaa2: add dpmac MC header file Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 06/11] net/dpaa2: support dpmac counters in stats Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 07/11] net/dpaa2: support dpmac Tx stats Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 08/11] net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 09/11] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 10/11] net/dpaa2: setup the speed cap based on the actual MAC Gagandeep Singh
2025-06-09  2:54     ` [PATCH v3 11/11] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-06-11 10:51     ` [PATCH v4 00/11] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 01/11] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 02/11] net/dpaa2: fix shaper rate Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 04/11] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 05/11] net/dpaa2: add dpmac MC header file Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 06/11] net/dpaa2: support dpmac counters in stats Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 07/11] net/dpaa2: support dpmac Tx stats Gagandeep Singh
2025-06-11 16:50         ` Stephen Hemminger
2025-06-11 10:51       ` [PATCH v4 08/11] net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 09/11] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 10/11] net/dpaa2: setup the speed cap based on the actual MAC Gagandeep Singh
2025-06-11 10:51       ` [PATCH v4 11/11] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-06-13  2:11       ` [PATCH v5 00/11] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 01/11] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 02/11] net/dpaa2: fix shaper rate Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 03/11] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 04/11] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 05/11] net/dpaa2: add dpmac MC header file Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 06/11] net/dpaa2: support dpmac counters in stats Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 07/11] net/dpaa2: support dpmac Tx stats Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 08/11] net/dpaa2: support dpmac Tx stats in xstats Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 09/11] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 10/11] net/dpaa2: setup the speed cap based on the actual MAC Gagandeep Singh
2025-06-13  2:11         ` [PATCH v5 11/11] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-06-19  5:40         ` [PATCH v5 00/11] NXP DPAA2 driver enhancements and fixes Hemant Agrawal
2025-06-30  9:57         ` [PATCH v6 0/6] " Gagandeep Singh
2025-06-30  9:57           ` [PATCH v6 1/6] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-06-30  9:57           ` [PATCH v6 2/6] net/dpaa2: fix shaper rate Gagandeep Singh
2025-06-30  9:57           ` [PATCH v6 3/6] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-06-30  9:57           ` [PATCH v6 4/6] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-06-30  9:57           ` [PATCH v6 5/6] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-06-30  9:58           ` [PATCH v6 6/6] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-06-30 15:12             ` Stephen Hemminger
2025-07-01  4:10               ` Gagandeep Singh
2025-07-01  4:29           ` [PATCH v7 0/6] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-07-01  4:29             ` [PATCH v7 1/6] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-07-01  4:29             ` [PATCH v7 2/6] net/dpaa2: fix shaper rate Gagandeep Singh
2025-07-01  4:29             ` [PATCH v7 3/6] bus/fslmc: add DPBP APIs for setting depletion thresholds Gagandeep Singh
2025-07-01 14:05               ` Stephen Hemminger
2025-07-02  9:44                 ` Gagandeep Singh
2025-07-01  4:29             ` [PATCH v7 4/6] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-07-01  4:29             ` [PATCH v7 5/6] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-07-01  4:29             ` [PATCH v7 6/6] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-07-02  9:51             ` [PATCH v8 0/5] NXP DPAA2 driver enhancements and fixes Gagandeep Singh
2025-07-02  9:51               ` [PATCH v8 1/5] net/dpaa2: fix issue of extract buffer preparation Gagandeep Singh
2025-07-02  9:51               ` [PATCH v8 2/5] net/dpaa2: fix shaper rate Gagandeep Singh
2025-07-02  9:51               ` [PATCH v8 3/5] mempool/dpaa2: use unified VA to IOVA conversion Gagandeep Singh
2025-07-02  9:51               ` [PATCH v8 4/5] net/dpaa2: retrieve DPNI API version at init time Gagandeep Singh
2025-07-02  9:51               ` [PATCH v8 5/5] net/dpaa2: enable software taildrop for ordered queues Gagandeep Singh
2025-07-29  4:35               ` [PATCH v8 0/5] NXP DPAA2 driver enhancements and fixes Stephen Hemminger
2025-06-09 16:42 ` [PATCH 00/11] " Stephen Hemminger
2025-06-29 17:25 ` Stephen Hemminger
2025-06-30 10:02   ` Gagandeep Singh
2025-07-17 16:58     ` Stephen Hemminger [this message]

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=20250717095836.503111f9@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=G.Singh@nxp.com \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.