DPDK patches and discussions
 help / color / mirror / Atom feed
From: Kevin Traynor <ktraynor@redhat.com>
To: wang.junlong1@zte.com.cn, shan.lijie@zte.com.cn
Cc: dev@dpdk.org, bugzilla@dpdk.org
Subject: Re: [DPDK/ethdev Bug 1782] net/zxdh shadowed declarations
Date: Fri, 10 Oct 2025 15:47:19 +0100	[thread overview]
Message-ID: <35718aac-0957-40a4-a0ba-a1eb7a74c32f@redhat.com> (raw)
In-Reply-To: <bug-1782-3@https.bugs.dpdk.org/>

On 28/08/2025 00:01, bugzilla@dpdk.org wrote:
> https://bugs.dpdk.org/show_bug.cgi?id=1782
> 
>             Bug ID: 1782
>            Summary: net/zxdh shadowed declarations
>            Product: DPDK
>            Version: 25.07
>           Hardware: All
>                 OS: All
>             Status: UNCONFIRMED
>           Severity: normal
>           Priority: Normal
>          Component: ethdev
>           Assignee: dev@dpdk.org
>           Reporter: stephen@networkplumber.org
>   Target Milestone: ---
> 
> Compiling DPDK with -Wshadow causes additional warnings about potential issues
> caused by duplicate shadow declarations. One driver with issues is net/zxdh.
> 
> [1528/3627] Compiling C object
> drivers/libtmp_rte_net_zxdh.a.p/net_zxdh_zxdh_msg.c.o
> In file included from ../drivers/net/zxdh/zxdh_msg.h:14,
>                  from ../drivers/net/zxdh/zxdh_msg.c:17:
> ../drivers/net/zxdh/zxdh_msg.c: In function ‘zxdh_add_vf_mac_table’:
> ../drivers/net/zxdh/zxdh_common.h:94:18: warning: declaration of ‘addr’ shadows
> a previous local [-Wshadow]
>    94 |         uint8_t *addr = ZXDH_ADDR_OF(typ, p, fld); \
>       |                  ^~~~
> ../drivers/net/zxdh/zxdh_msg.c:1441:17: note: in expansion of macro ‘ZXDH_SET’
>  1441 |                 ZXDH_SET(mac_reply_msg, mac_reply_msg_addr, mac_flag,
> ZXDH_EEXIST_MAC_FLAG);
>       |                 ^~~~~~~~
> ../drivers/net/zxdh/zxdh_msg.c:1428:32: note: shadowed declaration is here
>  1428 |         struct rte_ether_addr *addr = &mac_filter->mac;
>       |                                ^~~~
> ../drivers/net/zxdh/zxdh_common.h:94:18: warning: declaration of ‘addr’ shadows
> a previous local [-Wshadow]
>    94 |         uint8_t *addr = ZXDH_ADDR_OF(typ, p, fld); \
>       |                  ^~~~
> ../drivers/net/zxdh/zxdh_msg.c:1462:9: note: in expansion of macro ‘ZXDH_SET’
>  1462 |         ZXDH_SET(msg_reply_body, reply_body, flag, ZXDH_REPS_SUCC);
>       |         ^~~~~~~~
> ../drivers/net/zxdh/zxdh_msg.c:1428:32: note: shadowed declaration is here
>  1428 |         struct rte_ether_addr *addr = &mac_filter->mac;
>       |                                ^~~~
> ../drivers/net/zxdh/zxdh_common.h:94:18: warning: declaration of ‘addr’ shadows
> a previous local [-Wshadow]
>    94 |         uint8_t *addr = ZXDH_ADDR_OF(typ, p, fld); \
>       |                  ^~~~
> ../drivers/net/zxdh/zxdh_msg.c:1468:9: note: in expansion of macro ‘ZXDH_SET’
>  1468 |         ZXDH_SET(msg_reply_body, reply_body, flag, ZXDH_REPS_FAIL);
>       |         ^~~~~~~~
> ../drivers/net/zxdh/zxdh_msg.c:1428:32: note: shadowed declaration is here
>  1428 |         struct rte_ether_addr *addr =
> 

Hello Junlong and Lijie,

fyi above. Can you register in dpdk bugzilla (https://bugs.dpdk.org/) ?
Then I can make you aware of any reported issues without having to send
separate emails.

thanks,
Kevin.


      reply	other threads:[~2025-10-10 14:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-27 23:01 bugzilla
2025-10-10 14:47 ` Kevin Traynor [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=35718aac-0957-40a4-a0ba-a1eb7a74c32f@redhat.com \
    --to=ktraynor@redhat.com \
    --cc=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    --cc=shan.lijie@zte.com.cn \
    --cc=wang.junlong1@zte.com.cn \
    /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).