linux/drivers/cdx/controller
Kees Cook 69050f8d6d treewide: Replace kmalloc with kmalloc_obj for non-scalar types
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook <kees@kernel.org>
2026-02-21 01:02:28 -08:00
..
cdx_controller.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
cdx_controller.h cdx: add rpmsg communication channel for CDX 2023-03-29 12:26:32 +02:00
cdx_rpmsg.c - Add support for new AMD family 0x1a models to amd64_edac 2025-09-30 11:41:03 -07:00
Kconfig cdx: don't select CONFIG_GENERIC_MSI_IRQ 2025-08-27 12:14:12 -06:00
Makefile cdx: add rpmsg communication channel for CDX 2023-03-29 12:26:32 +02:00
mc_cdx_pcol.h cdx: add MSI support for CDX bus 2024-03-07 21:52:03 +00:00
mcdi.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
mcdi_functions.c cdx: Split mcdi.h and reorganize headers 2025-09-15 15:56:00 +02:00
mcdi_functions.h cdx: Split mcdi.h and reorganize headers 2025-09-15 15:56:00 +02:00
mcdid.h cdx: Split mcdi.h and reorganize headers 2025-09-15 15:56:00 +02:00