[PATCH 2/2] net/mvpp2: fix variable shadowing

David Marchand david.marchand at redhat.com
Wed Jan 21 12:11:50 CET 2026


On Wed, 21 Jan 2026 at 12:08, Thomas Monjalon <thomas at monjalon.net> wrote:
>
> With shadowing warning enabled, we can see "i" was declared twice:
>
> drivers/net/mvpp2/mrvl_ethdev.c: In function 'mrvl_rx_pkt_burst':
> error: declaration of 'i' shadows a previous local [-Werror=shadow]
>  2676 |                         int i;
>       |                             ^
> /mrvl_ethdev.c:2592:13: note: shadowed declaration is here
>  2592 |         int i, ret, rx_done = 0;
>       |             ^
>
> Fixes: afb4d0d0bf91 ("net/mrvl: add Rx/Tx support")
> Cc: stable at dpdk.org
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Acked-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the stable mailing list