[PATCH 1/2] firmware: arm_ffa: Explicitly cast return value from FFA_VERSION before comparison

Sudeep Holla sudeep.holla at arm.com
Thu Feb 27 02:14:57 PST 2025


On Fri, 21 Feb 2025 09:56:31 +0000, Sudeep Holla wrote:
> The return value ver.a0 is unsigned long type and FFA_RET_NOT_SUPPORTED
> is a negative value.
>
> Since the return value from the firmware can be just 32-bit even on
> 64-bit systems as FFA specification mentions it as int32 error code in
> w0 register, explicitly casting to s32 ensures correct sign interpretation
> when comparing against a signed error code FFA_RET_NOT_SUPPORTED.
>
> [...]

Applied to sudeep.holla/linux (for-next/ffa/updates), thanks!

[1/2] firmware: arm_ffa: Explicitly cast return value from FFA_VERSION before comparison
      https://git.kernel.org/sudeep.holla/c/cecf6a504137
[2/2] firmware: arm_ffa: Explicitly cast return value from NOTIFICATION_INFO_GET
      https://git.kernel.org/sudeep.holla/c/3e282f41585c

--
Regards,
Sudeep




More information about the linux-arm-kernel mailing list