lkml.org 
[lkml]   [2024]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: (subset) [PATCH] leds: fix ifdef check for gpio_led_register_device()
Date
On Wed, 28 Feb 2024 10:38:26 +0100, Arnd Bergmann wrote:
> gpio_led_register_device() is built whenever CONFIG_LEDS_GPIO_REGISTER is
> enabled, and this may be used even when CONFIG_NEW_LEDS is turned off.
>
> However, the stub declaration in the header is provided for all configs
> without CONFIG_NEW_LEDS, resulting in a build failure:
>
> drivers/leds/leds-gpio-register.c:24:1: error: redefinition of 'gpio_led_register_device'
> 24 | gpio_led_register_device(int id, const struct gpio_led_platform_data *pdata)
> | ^
> include/linux/leds.h:646:39: note: previous definition is here
>
> [...]

Applied, thanks!

[1/1] leds: fix ifdef check for gpio_led_register_device()
commit: 71c65d0ff79e3b21cb3eba67d87159533daaadbc

--
Lee Jones [李琼斯]


\
 
 \ /
  Last update: 2024-05-27 15:28    [W:0.191 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site