Thread (2 messages) 2 messages, 2 authors, 17d ago

Re: [PATCH] net: dsa: motorcomm: fix unused-function warning

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-21 22:36:57
Also in: lkml

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

On Wed, 16 Sep 2026 10:26:54 +0200 you wrote:
From: Arnd Bergmann <arnd@arndb.de>

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help