<html>
<head>
<base href="https://bugs.dpdk.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - net/zxdh shadowed declarations"
href="https://bugs.dpdk.org/show_bug.cgi?id=1782">1782</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>net/zxdh shadowed declarations
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>25.07
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>Normal
</td>
</tr>
<tr>
<th>Component</th>
<td>ethdev
</td>
</tr>
<tr>
<th>Assignee</th>
<td>dev@dpdk.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stephen@networkplumber.org
</td>
</tr>
<tr>
<th>Target Milestone</th>
<td>---
</td>
</tr></table>
<p>
<div class="bz_comment_block">
<pre class="bz_comment_text">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 =
</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1782">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>