[PATCH 0/5] net: use vmalloc_array() to simplify code

Qianfeng Rong posted 5 patches 1 month, 3 weeks ago
There is a newer version of this series
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c     | 2 +-
drivers/net/ethernet/intel/igb/igb_ethtool.c         | 8 ++++----
drivers/net/ethernet/intel/igc/igc_ethtool.c         | 8 ++++----
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c     | 2 +-
drivers/net/ethernet/intel/ixgbevf/ethtool.c         | 6 +++---
drivers/net/ethernet/netronome/nfp/flower/metadata.c | 4 ++--
drivers/net/ppp/bsd_comp.c                           | 4 ++--
drivers/net/wireless/ath/ath5k/debug.c               | 2 +-
drivers/net/wireless/marvell/mwifiex/cfg80211.c      | 4 ++--
9 files changed, 20 insertions(+), 20 deletions(-)
[PATCH 0/5] net: use vmalloc_array() to simplify code
Posted by Qianfeng Rong 1 month, 3 weeks ago
Remove array_size() calls and replace vmalloc() with vmalloc_array() to
simplify the code and maintain consistency with existing kmalloc_array()
usage.

Compile-tested only.

Qianfeng Rong (5):
  ethtool: use vmalloc_array() to simplify code
  nfp: flower: use vmalloc_array() to simplify code
  ppp: use vmalloc_array() to simplify
  wifi: ath5k: use vmalloc_array() to simplify code
  wifi: mwifiex: use vmalloc_array() to simplify code

 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c     | 2 +-
 drivers/net/ethernet/intel/igb/igb_ethtool.c         | 8 ++++----
 drivers/net/ethernet/intel/igc/igc_ethtool.c         | 8 ++++----
 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c     | 2 +-
 drivers/net/ethernet/intel/ixgbevf/ethtool.c         | 6 +++---
 drivers/net/ethernet/netronome/nfp/flower/metadata.c | 4 ++--
 drivers/net/ppp/bsd_comp.c                           | 4 ++--
 drivers/net/wireless/ath/ath5k/debug.c               | 2 +-
 drivers/net/wireless/marvell/mwifiex/cfg80211.c      | 4 ++--
 9 files changed, 20 insertions(+), 20 deletions(-)

-- 
2.34.1
Re: [PATCH 0/5] net: use vmalloc_array() to simplify code
Posted by Jakub Kicinski 1 month, 3 weeks ago
On Tue, 12 Aug 2025 21:32:13 +0800 Qianfeng Rong wrote:
> Remove array_size() calls and replace vmalloc() with vmalloc_array() to
> simplify the code and maintain consistency with existing kmalloc_array()
> usage.

You need to submit the first 3 as a separate series.
They get applied to a different tree than wireless patches.
Re: [PATCH 0/5] net: use vmalloc_array() to simplify code
Posted by Qianfeng Rong 1 month, 3 weeks ago
在 2025/8/13 4:48, Jakub Kicinski 写道:
> On Tue, 12 Aug 2025 21:32:13 +0800 Qianfeng Rong wrote:
>> Remove array_size() calls and replace vmalloc() with vmalloc_array() to
>> simplify the code and maintain consistency with existing kmalloc_array()
>> usage.
> You need to submit the first 3 as a separate series.
> They get applied to a different tree than wireless patches.

Ok,Will do in the next version.

Best regards,
Qianfeng

Re: [PATCH 0/5] net: use vmalloc_array() to simplify code
Posted by Qianfeng Rong 1 month, 3 weeks ago
在 2025/8/13 4:48, Jakub Kicinski 写道:
> On Tue, 12 Aug 2025 21:32:13 +0800 Qianfeng Rong wrote:
>> Remove array_size() calls and replace vmalloc() with vmalloc_array() to
>> simplify the code and maintain consistency with existing kmalloc_array()
>> usage.
> You need to submit the first 3 as a separate series.
> They get applied to a different tree than wireless patches.
Ok, Will do in the next version.