linux/drivers/s390/block
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
..
dasd_3990_erp.c s390/dasd: Use WRITE_FULL_TRACK in ESE format handler 2026-08-05 06:31:08 -06:00
dasd_alias.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dasd_devmap.c s390/dasd: Detect ESE volumes from the on-disk format label 2026-08-05 06:32:26 -06:00
dasd_diag.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dasd_diag.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dasd_eckd.c for-7.3/block-20260819 2026-08-20 13:55:16 -07:00
dasd_eckd.h s390/dasd: Read cached unit address and LSS in the CCW build path 2026-08-05 06:32:27 -06:00
dasd_eer.c s390/dasd: Replace get_zeroed_page() with kzalloc() 2026-06-03 15:32:44 +02:00
dasd_erp.c s390/dasd: Use WRITE_FULL_TRACK in ESE format handler 2026-08-05 06:31:08 -06:00
dasd_fba.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
dasd_fba.h s390/dasd: fix typo in copyright statement 2019-12-20 11:52:01 -07:00
dasd_genhd.c s390/dasd: Move device name formatting into separate function 2025-11-26 10:14:17 -07:00
dasd_int.h s390/dasd: Re-enable discard support for ESE volumes 2026-08-05 06:32:27 -06:00
dasd_ioctl.c s390/dasd: Fix potential NULL pointer dereference 2026-07-31 08:28:06 -06:00
dasd_proc.c s390/dasd: fix redundant /proc/dasd* entries removal 2024-11-09 20:06:58 -07:00
dasd.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
dcssblk.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
Kconfig s390/dcssblk: Add DAX support 2025-09-16 16:56:39 +02:00
Makefile s390/block: Enable CONTEXT_ANALYSIS 2026-08-06 08:14:13 -06:00
scm_blk.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
scm_blk.h block: remove genhd.h 2022-02-02 07:49:59 -07:00
scm_drv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00