linux/drivers/ufs/core
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
..
Kconfig scsi: ufs: core: Remove HPB support 2023-07-23 16:40:39 -04:00
Makefile scsi: ufs: core: Enable context analysis 2026-08-13 22:04:49 -04:00
ufs_bsg.c scsi: ufs: Add support for the aggregated read query opcode 2026-08-07 11:32:19 -04:00
ufs_bsg.h
ufs_trace_types.h scsi: ufs: core: Remove UFS_DEV_COMP 2025-10-23 22:18:12 -04:00
ufs_trace.h scsi: ufs: core: tracing: Do not dereference pointers in TP_printk() 2026-07-08 21:51:36 -04:00
ufs-debugfs.c scsi: ufs: core: Enable context analysis 2026-08-13 22:04:49 -04:00
ufs-debugfs.h scsi: ufs: core: Make the header files self-contained 2026-04-02 21:26:44 -04:00
ufs-fault-injection.c fault-inject: improve build for CONFIG_FAULT_INJECTION=n 2024-09-01 20:43:33 -07:00
ufs-fault-injection.h scsi: ufs: core: Make the header files self-contained 2026-04-02 21:26:44 -04:00
ufs-hwmon.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ufs-mcq.c scsi: ufs: Add support for the aggregated read query opcode 2026-08-07 11:32:19 -04:00
ufs-rpmb.c SCSI misc on 20260821 2026-08-21 11:23:20 -07:00
ufs-sysfs.c scsi: ufs: sysfs: Add HS_GEAR6 string in power_info/gear sysfs output 2026-07-16 22:16:29 -04:00
ufs-sysfs.h scsi: ufs: core: Revert "Make HID attributes visible" 2025-10-29 23:12:33 -04:00
ufs-txeq.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
ufshcd-crypto.c blk-crypto: add basic hardware-wrapped key support 2025-02-10 09:54:19 -07:00
ufshcd-crypto.h scsi: ufs: core: Remove an include directive from ufshcd-crypto.h 2026-04-02 21:26:44 -04:00
ufshcd-priv.h scsi: ufs: Remove unnecessary return in void vops wrappers 2026-06-01 21:59:51 -04:00
ufshcd.c SCSI updates for 7.3 2026-08-29 11:55:36 -07:00