Re: [PATCH] net: dsa: motorcomm: avoid unused variable warning
From: patchwork-bot+netdevbpf
Date: Fri Sep 18 2026 - 21:35:32 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 15 Sep 2026 22:01:30 +0200 you wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The 'priv' variable is defined before an #ifdef block but used inside
> of it:
>
> drivers/net/dsa/motorcomm/chip.c: In function 'yt921x_dsa_teardown':
> drivers/net/dsa/motorcomm/chip.c:4229:29: error: unused variable 'priv' [-Werror=unused-variable]
>
> [...]
Here is the summary with links:
- net: dsa: motorcomm: avoid unused variable warning
https://git.kernel.org/netdev/net-next/c/e3bfd25626b4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html