Re: [PATCH v2 2/3] nfp: flower: use vmalloc_array() to simplify code

From: Qianfeng Rong
Date: Sat Aug 16 2025 - 03:35:56 EST



在 2025/8/16 1:50, Jakub Kicinski 写道:
On Thu, 14 Aug 2025 18:20:54 +0800 Qianfeng Rong wrote:
- vmalloc(array_size(NFP_FL_STATS_ELEM_RS,
- priv->stats_ring_size));
+ vmalloc_array(NFP_FL_STATS_ELEM_RS,
+ priv->stats_ring_size);
This generates a bunch of warnings on gcc when building with W=1

Thank you for pointing this out. I will research the issue and fix the
warning immediately.

Best regards,
Qianfeng