milos-linux/kernel/irq
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
..
affinity.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
autoprobe.c genirq/autoprobe: Switch to lock guards 2025-05-07 09:08:11 +02:00
chip.c Updates for the [PCI] MSI subsystem: 2026-02-10 16:30:29 -08:00
cpuhotplug.c genirq/cpuhotplug: Notify about affinity changes breaking the affinity mask 2026-01-13 21:18:16 +01:00
debug.h
debugfs.c treewide: Update email address 2026-01-11 06:09:11 -10:00
devres.c genirq/devres: Add error handling in devm_request_*_irq() 2025-08-24 13:00:45 +02:00
dummychip.c
generic-chip.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
handle.c genirq: Remove IRQ timing tracking infrastructure 2025-12-15 22:20:50 +01:00
internals.h genirq/cpuhotplug: Notify about affinity changes breaking the affinity mask 2026-01-13 21:18:16 +01:00
ipi-mux.c
ipi.c
irq_sim.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
irq_test.c genirq/test: Ensure CPU 1 is online for hotplug test 2025-09-03 17:04:52 +02:00
irqdesc.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
irqdomain.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
Kconfig genirq: Remove IRQ timing tracking infrastructure 2025-12-15 22:20:50 +01:00
kexec.c
Makefile genirq: Remove IRQ timing tracking infrastructure 2025-12-15 22:20:50 +01:00
manage.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
matrix.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
migration.c genirq/migration: Use irqd_get_parent_data() in irq_force_complete_move() 2025-04-04 17:08:36 +02:00
msi.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
pm.c syscore: Pass context data to callbacks 2025-11-14 10:01:52 +01:00
proc.c genirq/proc: Replace snprintf with strscpy in register_handler_proc 2026-01-30 08:53:53 +01:00
resend.c genirq/resend: Switch to lock guards 2025-05-07 09:08:11 +02:00
settings.h
spurious.c genirq: Move irq_wait_for_poll() to call site 2025-07-22 14:30:42 +02:00