linux/drivers/iio
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
accel IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
adc treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
addac Char/Misc/IIO/etc driver update for 7.3-rc1 2026-08-25 09:38:50 -07:00
afe Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
amplifiers Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
buffer treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
cdc Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
chemical IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
common IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
dac IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
dummy Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
filter Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
flow iio: flow: add Sensirion SLF3S liquid flow sensor driver 2026-08-05 00:03:28 +01:00
frequency Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
gyro IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
health iio: health: Remove redundant dev_err() 2026-07-27 22:13:07 +01:00
humidity iio: humidity: Remove redundant dev_err()/dev_err_probe() 2026-07-27 22:13:07 +01:00
imu IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
light IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
magnetometer iio: magnetometer: ak8974: remove conditional return with no effect 2026-08-03 22:32:32 +01:00
multiplexer Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
orientation IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
position iio: hid-sensors: align function parenthesis for readability 2026-07-07 03:12:50 +01:00
potentiometer Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
potentiostat Linux 7.2-rc2 2026-07-06 16:59:47 +01:00
pressure IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
proximity IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
resolver iio: resolver: ad2s1200: use dev_err_probe() 2026-07-18 23:50:29 +01:00
temperature IIO new device support, features, cleanup for 7.3 2026-08-19 09:45:01 +02:00
test iio: test: iio-test-format: add test case for decimal format 2026-06-30 00:15:52 +01:00
trigger Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
iio_core_trigger.h iio: core: trigger: correct CONFIG_IIO_TRIGGER macro name in #endif comment 2026-06-29 19:05:37 +01:00
iio_core.h iio: Add iio_read_channel_label to inkern API 2024-06-28 20:06:56 +01:00
industrialio-acpi.c iio: acpi: Add iio_get_acpi_device_name_and_data() helper function 2024-10-28 20:04:11 +00:00
industrialio-backend.c iio: backend: fix typos in comments 2026-07-02 17:56:34 +01:00
industrialio-buffer.c iio: buffer: Make IIO DMA fence release RCU-safe 2026-08-07 23:51:04 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: add IIO_VAL_DECIMAL64_FEMTO format type 2026-08-05 00:03:28 +01:00
industrialio-event.c iio: event: Fix event FIFO reset race 2026-07-08 15:47:34 +01:00
industrialio-gts-helper.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
industrialio-sw-device.c iio: core: Constify struct configfs_item_operations and configfs_group_operations 2025-12-31 17:59:26 +00:00
industrialio-sw-trigger.c iio: core: Constify struct configfs_item_operations and configfs_group_operations 2025-12-31 17:59:26 +00:00
industrialio-trigger.c iio: core: Simplify IIO core managed APIs 2026-02-23 21:00:47 +00:00
industrialio-triggered-event.c
inkern.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig iio: flow: add Sensirion SLF3S liquid flow sensor driver 2026-08-05 00:03:28 +01:00
Makefile iio: flow: add Sensirion SLF3S liquid flow sensor driver 2026-08-05 00:03:28 +01:00
TODO iio: todo: fix typo and refine resource management items 2026-06-29 19:05:38 +01:00