From bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 21 Feb 2026 16:37:42 -0800 Subject: Convert 'alloc_obj' family to use the new default GFP_KERNEL argument This was done entirely with mindless brute force, using git grep -l '\ --- drivers/iio/trigger/iio-trig-hrtimer.c | 2 +- drivers/iio/trigger/iio-trig-interrupt.c | 2 +- drivers/iio/trigger/iio-trig-loop.c | 2 +- drivers/iio/trigger/iio-trig-sysfs.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/iio/trigger') diff --git a/drivers/iio/trigger/iio-trig-hrtimer.c b/drivers/iio/trigger/iio-trig-hrtimer.c index 02f137ace26d..57550b581593 100644 --- a/drivers/iio/trigger/iio-trig-hrtimer.c +++ b/drivers/iio/trigger/iio-trig-hrtimer.c @@ -131,7 +131,7 @@ static struct iio_sw_trigger *iio_trig_hrtimer_probe(const char *name) struct iio_hrtimer_info *trig_info; int ret; - trig_info = kzalloc_obj(*trig_info, GFP_KERNEL); + trig_info = kzalloc_obj(*trig_info); if (!trig_info) return ERR_PTR(-ENOMEM); diff --git a/drivers/iio/trigger/iio-trig-interrupt.c b/drivers/iio/trigger/iio-trig-interrupt.c index 432c9b2f2c64..a100c2e3a0d9 100644 --- a/drivers/iio/trigger/iio-trig-interrupt.c +++ b/drivers/iio/trigger/iio-trig-interrupt.c @@ -48,7 +48,7 @@ static int iio_interrupt_trigger_probe(struct platform_device *pdev) goto error_ret; } - trig_info = kzalloc_obj(*trig_info, GFP_KERNEL); + trig_info = kzalloc_obj(*trig_info); if (!trig_info) { ret = -ENOMEM; goto error_free_trigger; diff --git a/drivers/iio/trigger/iio-trig-loop.c b/drivers/iio/trigger/iio-trig-loop.c index 8996aaffb3f8..580a465035d1 100644 --- a/drivers/iio/trigger/iio-trig-loop.c +++ b/drivers/iio/trigger/iio-trig-loop.c @@ -80,7 +80,7 @@ static struct iio_sw_trigger *iio_trig_loop_probe(const char *name) struct iio_loop_info *trig_info; int ret; - trig_info = kzalloc_obj(*trig_info, GFP_KERNEL); + trig_info = kzalloc_obj(*trig_info); if (!trig_info) return ERR_PTR(-ENOMEM); diff --git a/drivers/iio/trigger/iio-trig-sysfs.c b/drivers/iio/trigger/iio-trig-sysfs.c index f242b3209307..b242b050ba18 100644 --- a/drivers/iio/trigger/iio-trig-sysfs.c +++ b/drivers/iio/trigger/iio-trig-sysfs.c @@ -140,7 +140,7 @@ static int iio_sysfs_trigger_probe(int id) ret = -EINVAL; goto err_unlock; } - t = kmalloc_obj(*t, GFP_KERNEL); + t = kmalloc_obj(*t); if (t == NULL) { ret = -ENOMEM; goto err_unlock; -- cgit v1.2.3