linux/drivers/nvdimm
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
..
badrange.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
btt_devs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
btt.c for-7.3/block-20260819 2026-08-20 13:55:16 -07:00
btt.h nvdimm-btt: clean up kernel-doc warnings 2026-07-30 15:42:58 -07:00
bus.c nvdimm/bus: Fix potential use after free in asynchronous initialization 2026-03-09 09:38:22 -05:00
claim.c nvdimm: Introduce guard() for nvdimm_bus_lock 2025-09-25 12:40:11 -05:00
core.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dax_devs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dimm_devs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dimm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
e820.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
Kconfig nvdimm: allow exposing RAM carveouts as NVDIMM DIMM devices 2025-11-03 14:50:42 -06:00
label.c libnvdimm/labels: Bound the on-media label size before the shift 2026-07-14 16:23:18 -07:00
label.h nvdimm/region: Delete nd_blk_region infrastructure 2022-03-11 15:53:13 -08:00
Makefile nvdimm: allow exposing RAM carveouts as NVDIMM DIMM devices 2025-11-03 14:50:42 -06:00
namespace_devs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
nd_perf.c nvdimm: Use sysfs_emit() for cpumask show callback 2026-06-01 16:55:18 -07:00
nd_virtio.c nvdimm: virtio_pmem: drain requests in freeze 2026-08-19 06:38:46 -04:00
nd-core.h libnvdimm: Remove unused nd_attach_ndns 2025-03-03 08:03:43 -06:00
nd.h Updates for the 7.2 release 2026-06-18 16:27:58 -07:00
of_pmem.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pfn_devs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pfn.h libnvdimm/namespace: Enforce memremap_compat_align() 2020-03-17 12:23:21 -07:00
pmem.c nvdimm: virtio_pmem: stop allocating child flush bio 2026-08-19 06:38:45 -04:00
pmem.h mm: remove callers of pfn_t functionality 2025-07-09 22:42:19 -07:00
ramdax.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
region_devs.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
region.c standalone cache drivers for v6.19 2025-11-27 23:00:45 +01:00
security.c nvdimm: replace use of system_wq with system_percpu_wq 2025-11-05 15:48:11 -06:00
virtio_pmem.c nvdimm: virtio_pmem: drain requests in freeze 2026-08-19 06:38:46 -04:00
virtio_pmem.h nvdimm: virtio_pmem: converge broken virtqueue to -EIO 2026-08-19 06:38:46 -04:00