Re: [PATCH] net: dsa: motorcomm: fix unused-function warning
From: patchwork-bot+netdevbpf
Date: Mon Sep 21 2026 - 18:43:52 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Wed, 16 Sep 2026 10:26:54 +0200 you wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> gcc warns about an unused function here because the __maybe_unused
> attribute is in the wrong part of the prototype:
>
> drivers/net/dsa/motorcomm/leds.c:352:1: error: 'yt921x_cled_hw_control_get_device' defined but not used [-Werror=unused-function]
> 352 | yt921x_cled_hw_control_get_device(struct led_classdev *led_cdev)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> [...]
Here is the summary with links:
- net: dsa: motorcomm: fix unused-function warning
https://git.kernel.org/netdev/net-next/c/cc2d273893db
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html