From: Jakub Kicinski <kuba@kernel.org>
To: Qianfeng Rong <rongqianfeng@vivo.com>
Cc: Simon Horman <horms@kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
oss-drivers@corigine.com (open list:NETRONOME ETHERNET DRIVERS),
netdev@vger.kernel.org (open list:NETWORKING DRIVERS),
linux-kernel@vger.kernel.org (open list)
Subject: Re: [PATCH v2 2/3] nfp: flower: use vmalloc_array() to simplify code
Date: Fri, 15 Aug 2025 10:50:26 -0700 [thread overview]
Message-ID: <20250815105026.04912f25@kernel.org> (raw)
In-Reply-To: <20250814102100.151942-3-rongqianfeng@vivo.com>
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
--
pw-bot: cr
next prev parent reply other threads:[~2025-08-15 17:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 10:20 [PATCH v2 0/3] net: " Qianfeng Rong
2025-08-14 10:20 ` [PATCH v2 1/3] eth: intel: " Qianfeng Rong
2025-08-14 10:20 ` [PATCH v2 2/3] nfp: flower: " Qianfeng Rong
2025-08-15 17:50 ` Jakub Kicinski [this message]
2025-08-16 7:35 ` Qianfeng Rong
2025-08-16 5:58 ` kernel test robot
2025-08-14 10:20 ` [PATCH v2 3/3] ppp: " Qianfeng Rong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250815105026.04912f25@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@corigine.com \
--cc=pabeni@redhat.com \
--cc=rongqianfeng@vivo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®