Re: [PATCH] gpiolib: acpi: use BIT_ULL() for u64 mask in address space handler
From: Bartosz Golaszewski
Date: Tue Jan 27 2026 - 04:15:06 EST
On Mon, 26 Jan 2026 06:59:14 +0300, Denis Sergeev wrote:
> The BIT() macro uses unsigned long, which is 32 bits on 32-bit
> architectures. When iterating over GPIO pins with index >= 32,
> the expression (*value & BIT(i)) causes undefined behavior due
> to shifting by a value >= type width.
>
> Since 'value' is a pointer to u64, use BIT_ULL() to ensure correct
> 64-bit mask on all architectures.
>
> [...]
Applied, thanks!
[1/1] gpiolib: acpi: use BIT_ULL() for u64 mask in address space handler
commit: 59084c564c412b1d537f90bd70fa1d6bfb584e82
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>