summaryrefslogtreecommitdiff
path: root/drivers/net/ipa
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 16:37:42 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-21 17:09:51 -0800
commitbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (patch)
tree01fdd9d27f1b272bef0127966e08eac44d134d0a /drivers/net/ipa
parente19e1b480ac73c3e62ffebbca1174f0f511f43e7 (diff)
Convert 'alloc_obj' family to use the new default GFP_KERNEL argument
This was done entirely with mindless brute force, using git grep -l '\<k[vmz]*alloc_objs*(.*, GFP_KERNEL)' | xargs sed -i 's/\(alloc_objs*(.*\), GFP_KERNEL)/\1)/' to convert the new alloc_obj() users that had a simple GFP_KERNEL argument to just drop that argument. Note that due to the extreme simplicity of the scripting, any slightly more complex cases spread over multiple lines would not be triggered: they definitely exist, but this covers the vast bulk of the cases, and the resulting diff is also then easier to check automatically. For the same reason the 'flex' versions will be done as a separate conversion. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/ipa')
-rw-r--r--drivers/net/ipa/gsi_trans.c2
-rw-r--r--drivers/net/ipa/ipa_interrupt.c2
-rw-r--r--drivers/net/ipa/ipa_main.c2
-rw-r--r--drivers/net/ipa/ipa_smp2p.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ipa/gsi_trans.c b/drivers/net/ipa/gsi_trans.c
index f82484de39dd..d0b10a2020ea 100644
--- a/drivers/net/ipa/gsi_trans.c
+++ b/drivers/net/ipa/gsi_trans.c
@@ -746,7 +746,7 @@ int gsi_channel_trans_init(struct gsi *gsi, u32 channel_id)
* Each entry in this map records the transaction associated
* with a corresponding completed TRE.
*/
- trans_info->map = kzalloc_objs(*trans_info->map, tre_count, GFP_KERNEL);
+ trans_info->map = kzalloc_objs(*trans_info->map, tre_count);
if (!trans_info->map) {
ret = -ENOMEM;
goto err_trans_free;
diff --git a/drivers/net/ipa/ipa_interrupt.c b/drivers/net/ipa/ipa_interrupt.c
index 9e8d75a98f05..131b9cc94201 100644
--- a/drivers/net/ipa/ipa_interrupt.c
+++ b/drivers/net/ipa/ipa_interrupt.c
@@ -329,7 +329,7 @@ struct ipa_interrupt *ipa_interrupt_init(struct platform_device *pdev)
if (irq <= 0)
return ERR_PTR(irq ? : -EINVAL);
- interrupt = kzalloc_obj(*interrupt, GFP_KERNEL);
+ interrupt = kzalloc_obj(*interrupt);
if (!interrupt)
return ERR_PTR(-ENOMEM);
interrupt->irq = irq;
diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c
index d09b4723f26c..edead9c48d1f 100644
--- a/drivers/net/ipa/ipa_main.c
+++ b/drivers/net/ipa/ipa_main.c
@@ -830,7 +830,7 @@ static int ipa_probe(struct platform_device *pdev)
}
/* No more EPROBE_DEFER. Allocate and initialize the IPA structure */
- ipa = kzalloc_obj(*ipa, GFP_KERNEL);
+ ipa = kzalloc_obj(*ipa);
if (!ipa) {
ret = -ENOMEM;
goto err_power_exit;
diff --git a/drivers/net/ipa/ipa_smp2p.c b/drivers/net/ipa/ipa_smp2p.c
index e96bdd9b68a8..2f0ccdd937cc 100644
--- a/drivers/net/ipa/ipa_smp2p.c
+++ b/drivers/net/ipa/ipa_smp2p.c
@@ -242,7 +242,7 @@ ipa_smp2p_init(struct ipa *ipa, struct platform_device *pdev, bool modem_init)
if (enabled_bit >= 32) /* BITS_PER_U32 */
return -EINVAL;
- smp2p = kzalloc_obj(*smp2p, GFP_KERNEL);
+ smp2p = kzalloc_obj(*smp2p);
if (!smp2p)
return -ENOMEM;