summaryrefslogtreecommitdiff
path: root/net/ethtool
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:06:51 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:09:51 -0800
commit323bbfcf1ef8836d0d2ad9e2c1f1c684f0e3b5b3 (patch)
tree515dca34daa8d18ec26c2c3da3096c6c23955c95 /net/ethtool
parentbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (diff)
Convert 'alloc_flex' family to use the new default GFP_KERNEL argument
This is the exact same thing as the 'alloc_obj()' version, only much smaller because there are a lot fewer users of the *alloc_flex() interface. As with alloc_obj() version, this was done entirely with mindless brute force, using the same script, except using 'flex' in the pattern rather than 'objs*'. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/ethtool')
-rw-r--r--net/ethtool/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ethtool/common.c b/net/ethtool/common.c
index 7a302a93f52c..e252cf20c22f 100644
--- a/net/ethtool/common.c
+++ b/net/ethtool/common.c
@@ -687,7 +687,7 @@ static int ethtool_get_max_rxnfc_channel(struct net_device *dev, u64 *max)
if (rule_cnt <= 0)
return -EINVAL;
- info = kvzalloc_flex(*info, rule_locs, rule_cnt, GFP_KERNEL);
+ info = kvzalloc_flex(*info, rule_locs, rule_cnt);
if (!info)
return -ENOMEM;
@@ -841,7 +841,7 @@ int ethtool_check_rss_ctx_busy(struct net_device *dev, u32 rss_context)
if (rule_cnt < 0)
return -EINVAL;
- info = kvzalloc_flex(*info, rule_locs, rule_cnt, GFP_KERNEL);
+ info = kvzalloc_flex(*info, rule_locs, rule_cnt);
if (!info)
return -ENOMEM;