From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 436BC46AD8; Thu, 3 Jul 2025 19:15:06 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 07A7140267; Thu, 3 Jul 2025 19:15:06 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id C26A440267 for ; Thu, 3 Jul 2025 19:15:04 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id B88E746AE7; Thu, 3 Jul 2025 19:15:04 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [DPDK/ethdev Bug 1745] bonding: duplicate shadow local variables Date: Thu, 03 Jul 2025 17:15:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stephen@networkplumber.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: multipart/alternative; boundary=17515629040.dc6b.1313637 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --17515629040.dc6b.1313637 Date: Thu, 3 Jul 2025 19:15:04 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All https://bugs.dpdk.org/show_bug.cgi?id=3D1745 Bug ID: 1745 Summary: bonding: duplicate shadow local variables Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: stephen@networkplumber.org Target Milestone: --- Building with -Wshadow flags several potential bugs in bonding: [963/3418] Compiling C object drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o ../drivers/net/bonding/rte_eth_bond_pmd.c: In function =E2=80=98member_star= t=E2=80=99: ../drivers/net/bonding/rte_eth_bond_pmd.c:1910:42: warning: declaration of =E2=80=98internals=E2=80=99 shadows a previous local [-Wshadow] 1910 | struct bond_dev_private *internals; | ^~~~~~~~~ ../drivers/net/bonding/rte_eth_bond_pmd.c:1828:34: note: shadowed declarati= on is here 1828 | struct bond_dev_private *internals =3D bonding_eth_dev->data->dev_private; | ^~~~~~~~~ ../drivers/net/bonding/rte_eth_bond_pmd.c: In function =E2=80=98bond_ethdev_allmulticast_disable=E2=80=99: ../drivers/net/bonding/rte_eth_bond_pmd.c:2914:34: warning: declaration of =E2=80=98port_id=E2=80=99 shadows a previous local [-Wshadow] 2914 | uint16_t port_id =3D internals->members[i].port_id; | ^~~~~~~ ../drivers/net/bonding/rte_eth_bond_pmd.c:2903:18: note: shadowed declarati= on is here 2903 | uint16_t port_id; | ^~~~~~~ ../drivers/net/bonding/rte_eth_bond_pmd.c: In function =E2=80=98bond_ethdev= _configure=E2=80=99: ../drivers/net/bonding/rte_eth_bond_pmd.c:4111:26: warning: declaration of = =E2=80=98i=E2=80=99 shadows a previous local [-Wshadow] 4111 | unsigned i; | ^ ../drivers/net/bonding/rte_eth_bond_pmd.c:3946:18: note: shadowed declarati= on is here 3946 | unsigned i, j; | --=20 You are receiving this mail because: You are the assignee for the bug.= --17515629040.dc6b.1313637 Date: Thu, 3 Jul 2025 19:15:04 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1745
Summary bonding: duplicate shadow local variables
Product DPDK
Version unspecified
Hardware All
OS All
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter stephen@networkplumber.org
Target Milestone ---

Building with -Wshadow flags sever=
al potential bugs in bonding:

[963/3418] Compiling C object
drivers/libtmp_rte_net_bond.a.p/net_bonding_rte_eth_bond_pmd.c.o
../drivers/net/bonding/rte_eth_bond_pmd.c: In function =E2=80=98member_star=
t=E2=80=99:
../drivers/net/bonding/rte_eth_bond_pmd.c:1910:42: warning: declaration of
=E2=80=98internals=E2=80=99 shadows a previous local [-Wshadow]
 1910 |                 struct bond_dev_private *internals;
      |                                          ^~~~~~~~~
../drivers/net/bonding/rte_eth_bond_pmd.c:1828:34: note: shadowed declarati=
on
is here
 1828 |         struct bond_dev_private *internals =3D
bonding_eth_dev->data->dev_private;
      |                                  ^~~~~~~~~
../drivers/net/bonding/rte_eth_bond_pmd.c: In function
=E2=80=98bond_ethdev_allmulticast_disable=E2=80=99:
../drivers/net/bonding/rte_eth_bond_pmd.c:2914:34: warning: declaration of
=E2=80=98port_id=E2=80=99 shadows a previous local [-Wshadow]
 2914 |                         uint16_t port_id =3D
internals->members[i].port_id;
      |                                  ^~~~~~~
../drivers/net/bonding/rte_eth_bond_pmd.c:2903:18: note: shadowed declarati=
on
is here
 2903 |         uint16_t port_id;
      |                  ^~~~~~~
../drivers/net/bonding/rte_eth_bond_pmd.c: In function =E2=80=98bond_ethdev=
_configure=E2=80=99:
../drivers/net/bonding/rte_eth_bond_pmd.c:4111:26: warning: declaration of =
=E2=80=98i=E2=80=99
shadows a previous local [-Wshadow]
 4111 |                 unsigned i;
      |                          ^
../drivers/net/bonding/rte_eth_bond_pmd.c:3946:18: note: shadowed declarati=
on
is here
 3946 |         unsigned i, j;
      |
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --17515629040.dc6b.1313637--