Re: [PATCH net-next] net: Remove shadow variable in netdev_run_todo()
From: patchwork-bot+netdevbpf
Date: Mon Feb 24 2025 - 17:50:55 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 21 Feb 2025 09:51:27 -0800 you wrote:
> Fix a shadow variable warning in net/core/dev.c when compiled with
> CONFIG_LOCKDEP enabled. The warning occurs because 'dev' is redeclared
> inside the while loop, shadowing the outer scope declaration.
>
> net/core/dev.c:11211:22: warning: declaration shadows a local variable [-Wshadow]
> struct net_device *dev = list_first_entry(&unlink_list,
>
> [...]
Here is the summary with links:
- [net-next] net: Remove shadow variable in netdev_run_todo()
https://git.kernel.org/netdev/net-next/c/7183877d6853
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html