[PATCH] firmware: arm_scmi: Replace zero-length array with flexible-array member

Sudeep Holla sudeep.holla at arm.com
Tue Apr 5 07:32:37 PDT 2022


On Fri, 1 Apr 2022 07:55:37 +0000, cgel.zte at gmail.com wrote:
> From: Lv Ruyi <lv.ruyi at zte.com.cn>
> 
> There is a regular need in the kernel to provide a way to declare
> having a dynamically sized set of trailing elements in a structure.
> Kernel code should always use “flexible array members”[1] for these
> cases. The older style of one-element or zero-length arrays should
> no longer be used[2].
> 
> [...]

Applied to sudeep.holla/linux (fixes/scmi), thanks!

[1/1] firmware: arm_scmi: Replace zero-length array with flexible-array member
      https://git.kernel.org/sudeep.holla/c/f1ad601d1f

--
Regards,
Sudeep




More information about the linux-arm-kernel mailing list