linux/drivers/platform
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
..
arm64 platform: arm64: qcom-hamoa-ec: reject incomplete responses 2026-08-03 20:02:53 +03:00
chrome MFD for v7.3 2026-08-27 10:45:08 -07:00
cznic platform: cznic: turris-omnia-mcu: replace use of system_wq with system_percpu_wq 2026-05-07 11:29:59 -10:00
goldfish Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
loongarch platform/loongarch: laptop: Explicitly reset bl_powered state when suspend 2026-07-24 16:33:14 +08:00
mellanox mlxbf-bootctl: fix the build error with FIELD_PREP() 2026-08-18 17:30:32 +03:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-06-21 10:22:10 +02:00
olpc platform/olpc: olpc-xo175-ec: Fix overflow error message to print inlen 2026-03-23 14:49:00 +02:00
raspberrypi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
surface platform-drivers-x86 for v7.3-1 2026-08-24 10:16:35 -07:00
wmi platform/wmi: Make sysfs attributes const 2026-06-12 16:01:53 +03:00
x86 treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00
Makefile platform-drivers-x86 for v6.19-1 2025-12-10 06:38:17 +09:00