<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 - bus/flsmc: duplicate variable definition"
href="https://bugs.dpdk.org/show_bug.cgi?id=1744">1744</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>bus/flsmc: duplicate variable definition
</td>
</tr>
<tr>
<th>Product</th>
<td>DPDK
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>other
</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">Building with -Wshadow reports:
In file included from ../drivers/bus/fslmc/portal/dpaa2_hw_dpci.c:27:
../drivers/bus/fslmc/portal/dpaa2_hw_dpci.c: In function
‘rte_dpaa2_create_dpci_device’:
../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/bus/fslmc/portal/dpaa2_hw_dpci.c:99:23: note: in expansion of macro
‘dpaa2_queue_storage_alloc’
99 | ret = dpaa2_queue_storage_alloc(rxq, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/bus/fslmc/portal/dpaa2_hw_dpci.c:57:13: note: shadowed declaration
is here
57 | int ret, i, dpci_id = obj->object_id;
| ^~~
../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/bus/fslmc/portal/dpaa2_hw_dpci.c:99:23: note: in expansion of macro
‘dpaa2_queue_storage_alloc’
99 | ret = dpaa2_queue_storage_alloc(rxq, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/bus/fslmc/portal/dpaa2_hw_dpci.c:57:18: note: shadowed declaration
is here
57 | int ret, i, dpci_id = obj->object_id;
| ^
../drivers/bus/fslmc/portal/dpaa2_hw_pvt.h:226:13: warning: declaration of ‘i’
shadows a previous local [-Wshadow]
226 | int i; \
| ^
../drivers/bus/fslmc/portal/dpaa2_hw_dpci.c:148:17: note: in expansion of macro
‘dpaa2_queue_storage_free’
148 | dpaa2_queue_storage_free(rxq, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~
../drivers/bus/fslmc/portal/dpaa2_hw_dpci.c:57:18: note: shadowed declaration
is here
57 | int ret, i, dpci_id = obj->object_id;
| ^
</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=1744">
<meta itemprop="name" content="View bug">
</div>
<meta itemprop="description" content="Bugzilla bug update notification">
</div>
</body>
</html>