On Wed, 21 Jan 2026 at 12:08, Thomas Monjalon <[email protected]> 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: [email protected]
>
> Signed-off-by: Thomas Monjalon <[email protected]>
Acked-by: David Marchand <[email protected]>


-- 
David Marchand

Reply via email to