[PATCHv2] dmaengine: st_fdma: simplify allocation
Rosen Penev
rosenp at gmail.com
Mon Jun 8 13:52:09 PDT 2026
On Mon, Jun 8, 2026 at 9:25 AM Frank Li <Frank.li at oss.nxp.com> wrote:
>
> On Sun, Jun 07, 2026 at 10:18:29PM -0700, Rosen Penev wrote:
>
> Nit: dmaengine: st_fdma: simplify allocation by using flexible array
that's in the description. Did it that was to not have it as long,
flexible array member is the proper terminology.
>
> Reviewed-by: Frank Li <Frank.Li at nxp.com>
>
> > Use a flexible array member to combine kzalloc and kcalloc to a single
> > allocation.
> >
> > Add __counted_by for extra runtime analysis. Assign counting variable
> > after allocation before any array accesses.
> >
> > Signed-off-by: Rosen Penev <rosenp at gmail.com>
> > ---
> >
More information about the linux-arm-kernel
mailing list