On Mon, 17 Aug 2026 22:44:33 +0200, Sascha Hauer wrote:
> pxad_alloc_desc() was converted from
>
> kzalloc(struct_size(sw_desc, hw_desc, nb_hw_desc), GFP_NOWAIT)
>
> to kzalloc_flex(), which sets the __counted_by() counter sw_desc->nb_desc
> itself - but only where the compiler has __builtin_counted_by_ref(), so
> from gcc 15.1 or clang 22.1 on. The loop below it still increments
> nb_desc, which makes it come out doubled there and correct elsewhere.
>
> [...]
Applied, thanks!
[1/1] dmaengine: pxa: fix double counting of the hw descriptors
commit: f6504be006aa4bb4bd26285f410a885c17920d65
Best regards,
--
~Vinod