[PATCH] firmware: arm_scmi: base: Simplify protocol list size calculation

Sudeep Holla sudeep.holla at kernel.org
Mon Mar 9 02:12:26 PDT 2026


On Sat, 28 Feb 2026 11:37:33 +0800, Peng Fan (OSS) wrote:
> Replace the open-coded round-up calculation with the kernel's round_up()
> helper function for better readability.
> 
> The original expression:
>   (1 + (loop_num_ret - 1) / sizeof(u32)) * sizeof(u32)
> 
> is equivalent to rounding up loop_num_ret to the nearest multiple of
> sizeof(u32), which is exactly what round_up() does.
> 
> [...]

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

[1/1] firmware: arm_scmi: base: Simplify protocol list size calculation
      https://git.kernel.org/sudeep.holla/c/09bb95d63ade
--
Regards,
Sudeep




More information about the linux-arm-kernel mailing list