[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176950495241.13307.392282288543318435.b4-ty@oss.qualcomm.com>
Date: Tue, 27 Jan 2026 10:09:17 +0100
From: Bartosz Golaszewski <bartosz.golaszewski@....qualcomm.com>
To: westeri@...nel.org, andriy.shevchenko@...ux.intel.com, linusw@...nel.org,
brgl@...nel.org, Denis Sergeev <denserg.edu@...il.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@....qualcomm.com>,
linux-gpio@...r.kernel.org, linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: [PATCH] gpiolib: acpi: use BIT_ULL() for u64 mask in address space handler
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@....qualcomm.com>
Powered by blists - more mailing lists