[lvc-project] [PATCH] gpiolib: acpi: use BIT_ULL() for u64 mask in address space handler

Bartosz Golaszewski bartosz.golaszewski at oss.qualcomm.com
Tue Jan 27 12:09:17 MSK 2026


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 at oss.qualcomm.com>



More information about the lvc-project mailing list