merged.
Bruce
In message: [linux-yocto][v6.12/standard/bcm-2xxx-rpi &
v6.12/standard/preempt-rt/bcm-2xxx-rpi][PATCH] gpiolib: Remove unused-variable
build warning
on 18/11/2025 Jianpeng Chang wrote:
> Raspberry Pi GPIO driver removed the mutex lock to improve performance.
> The gpio_devices_lock is no longer used by default, so conditionally
> compile out the lock definition when REJECT_HOTPLUG_TAX is defined to
> eliminate the build warning:
> warning: 'gpio_devices_lock' defined but not used [-Wunused-variable]
>
> Fixes: 8faa733240c1 ("gpiolib: Avoid the hotplug performance reduction")
> Signed-off-by: Jianpeng Chang <[email protected]>
> ---
> drivers/gpio/gpiolib.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
> index fe01d258d61d..2f88491e4183 100644
> --- a/drivers/gpio/gpiolib.c
> +++ b/drivers/gpio/gpiolib.c
> @@ -122,7 +122,9 @@ static LIST_HEAD(gpio_lookup_list);
>
> static LIST_HEAD(gpio_devices);
> /* Protects the GPIO device list against concurrent modifications. */
> +#ifndef REJECT_HOTPLUG_TAX
> static DEFINE_MUTEX(gpio_devices_lock);
> +#endif
> /* Ensures coherence during read-only accesses to the list of GPIO devices.
> */
> DEFINE_STATIC_SRCU(gpio_devices_srcu);
>
> --
> 2.51.2
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15992):
https://lists.yoctoproject.org/g/linux-yocto/message/15992
Mute This Topic: https://lists.yoctoproject.org/mt/116353237/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-