linux/drivers/firmware/arm_scmi
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
..
transports firmware: arm_scmi: Unwind P2A receiver mailbox setup failure 2026-07-14 21:19:22 +01:00
vendors/imx firmware: arm_scmi: imx: Support getting reset reason of MISC protocol 2026-05-05 15:45:35 +01:00
base.c firmware: arm_scmi: Validate BASE_ERROR_EVENT payload size 2026-05-20 10:00:10 +01:00
bus.c firmware: arm_scmi: Unrequest devices if driver registration fails 2026-07-22 20:33:43 +01:00
clock.c firmware: arm_scmi: Use 64-bit division for clock rate rounding 2026-07-09 14:34:41 +01:00
common.h firmware: arm_scmi: Fix transport device teardown lookup 2026-07-14 21:19:23 +01:00
driver.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig firmware: arm_scmi: Grammar s/may needed/may be needed/ 2026-06-30 10:30:25 +01:00
Makefile firmware: arm_scmi: Add common framework to handle firmware quirks 2025-05-06 11:12:30 +01:00
msg.c firmware: arm_scmi: Remove legacy transport-layer code 2024-08-16 10:26:58 +01:00
notify.c firmware: arm_scmi: Quiesce notifications before teardown 2026-07-14 21:19:21 +01:00
notify.h firmware: arm_scmi: Quiesce notifications before teardown 2026-07-14 21:19:21 +01:00
perf.c firmware: arm_scmi: Remove legacy protocol versioning logic 2025-12-27 20:09:30 +00:00
pinctrl.c firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPP 2026-03-24 13:50:30 +01:00
power.c firmware: arm_scmi: Fix OOB in scmi_power_name_get() 2026-05-21 17:31:51 +01:00
powercap.c firmware: arm_scmi: Validate Powercap domains before state access 2026-05-20 10:00:10 +01:00
protocols.h firmware: arm_scmi: Use proper iter_response_bound_cleanup() name 2026-05-12 15:29:11 +01:00
quirks.c firmware: arm_scmi: quirk: Simplify quirk table iteration 2026-05-05 15:45:59 +01:00
quirks.h firmware: arm_scmi: Support loop control in quirk code snippets 2026-03-17 07:30:22 +00:00
raw_mode.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
raw_mode.h firmware: arm_scmi: Add per-channel raw injection support 2023-01-20 11:41:37 +00:00
reset.c firmware: arm_scmi: Remove legacy protocol versioning logic 2025-12-27 20:09:30 +00:00
scmi_power_control.c firmware: arm_scmi: Convert to SYSTEM_SLEEP_PM_OPS 2025-07-09 10:49:58 +01:00
sensors.c firmware: arm_scmi: Validate SENSOR_UPDATE payload size 2026-05-20 10:00:10 +01:00
shmem.c firmware: arm_scmi: Fix uninitialized pointers with __free attr 2025-12-15 10:31:24 +00:00
system.c firmware: arm_scmi: Remove legacy protocol versioning logic 2025-12-27 20:09:30 +00:00
voltage.c firmware: arm_scmi: Remove legacy protocol versioning logic 2025-12-27 20:09:30 +00:00