linux/drivers/base
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
..
firmware_loader firmware_loader: do not queue completed sysfs fallback requests 2026-08-06 23:38:16 +02:00
power PM: sleep: Unblock runtime PM when device prepare fails 2026-08-20 23:18:15 +02:00
regmap regmap: Updates for v7.3 2026-08-19 09:32:57 -07:00
test device property: add test cases for fwnode_for_each_child_node() 2026-07-21 23:40:48 +02:00
arch_topology.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
attribute_container.c driver core: attribute_container: Unwind device_add() on attr failure 2026-07-18 16:07:22 +02:00
auxiliary_sysfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
auxiliary.c ACPI support updates for 7.1-rc1 2026-04-13 19:25:07 -07:00
base.h driver core: constify group arrays arguments in driver_add_groups and driver_remove_groups 2026-05-22 13:32:05 +02:00
bus.c driver core: reject devices with unregistered buses 2026-05-02 17:50:50 +02:00
cacheinfo.c cacheinfo: don't propagate DT/ACPI error when arch supplies info (arm64) 2026-07-17 15:53:15 +02:00
class.c kernfs: pass struct ns_common instead of const void * for namespace tags 2026-04-09 14:36:52 +02:00
component.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
container.c driver core: container: make container_subsys const 2023-12-21 13:56:10 +01:00
core.c driver core: avoid repeatedly printing the same 'Fixed dependency' log 2026-07-17 15:44:44 +02:00
cpu.c cpu: Use sysfs_emit() for cpumask show callback 2026-07-22 15:38:37 -04:00
dd.c driver core: add driver name to probe debug print 2026-07-10 16:56:07 +02:00
devcoredump.c devcoredump: Remove exit call 2026-05-22 13:26:51 +02:00
devres.c devres: rename and export set_node_dbginfo() 2026-03-18 00:02:59 +01:00
devtmpfs.c devtmpfs: create private mount namespace 2026-06-29 10:54:43 +02:00
driver.c driver core: remove driver_set_override() 2026-05-30 22:25:50 +02:00
faux.c driver core: faux: clean up init error handling 2026-05-02 17:50:50 +02:00
firmware.c
hypervisor.c
init.c driver core: make software nodes available earlier 2026-04-04 00:33:49 +02:00
isa.c isa: refactor code to remove nested blocks 2026-07-03 23:14:59 +02:00
Kconfig mm.git review status for linus..mm-stable 2026-08-27 09:17:06 -07:00
Makefile drivers/base, mm: move arch_numa.c to mm/ 2026-08-24 18:43:10 -07:00
map.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
memory.c mm/memory_hotplug: add mhp_online_type_to_str() and export string helpers 2026-08-06 18:56:58 -07:00
module.c driver core: fix path of /sys/module in comment 2026-06-29 01:11:14 +02:00
node.c drivers/base/memory: make memory block get/put explicit 2026-06-02 15:22:12 -07:00
physical_location.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
physical_location.h driver core: physical_location.h remove extern from function prototypes 2023-03-24 15:35:48 +01:00
pinctrl.c driver core: Replace dev->of_node_reused with dev_of_node_reused() 2026-04-26 23:50:20 +02:00
platform-msi.c platform-msi: Remove stale comment 2026-02-26 10:48:19 +01:00
platform.c driver core: platform: unify release path 2026-07-20 00:49:16 +02:00
property.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
soc.c driver core: soc: Unregister bus on early device registration failure 2026-07-18 16:07:22 +02:00
swnode.c software node: Fix software_node_get_reference_args() with index -1 2026-07-18 16:07:22 +02:00
syscore.c syscore: Pass context data to callbacks 2025-11-14 10:01:52 +01:00
topology.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
trace.c devres: Enable trace events 2021-06-15 17:14:36 +02:00
trace.h devres: Fix page faults when tracing devres from unloaded modules 2024-10-14 08:21:09 +02:00
transport_class.c drivers: base: Remove statistics group if encryption group not created 2026-07-18 16:07:22 +02:00