linux/drivers/platform/x86/intel/pmc
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
..
adl.c platform/x86/intel/pmc: Remove unnecessary declarations in header 2025-02-24 13:34:55 +02:00
arl.c platform/x86/intel/pmc: Retrieve PMC info only for available PMCs 2026-05-08 21:38:51 +03:00
cnp.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
core.c platform/x86/intel/pmc: initialize empty PMT read result 2026-07-21 19:52:44 +03:00
core.h platform/x86/intel/pmc: Add ACPI PWRM telemetry driver for Nova Lake S 2026-06-15 02:13:05 +03:00
icl.c platform/x86/intel/pmc: Remove unnecessary declarations in header 2025-02-24 13:34:55 +02:00
Kconfig platform/x86/intel/pmc: Add ACPI PWRM telemetry driver for Nova Lake S 2026-06-15 02:13:05 +03:00
lnl.c platform/x86/intel/pmc: Retrieve PMC info only for available PMCs 2026-05-08 21:38:51 +03:00
Makefile platform/x86/intel/pmc: Add ACPI PWRM telemetry driver for Nova Lake S 2026-06-15 02:13:05 +03:00
mtl.c platform/x86/intel/pmc: Retrieve PMC info only for available PMCs 2026-05-08 21:38:51 +03:00
nvl.c platform/x86/intel/pmc: Add Nova Lake support to intel_pmc_core driver 2026-05-08 21:44:32 +03:00
pltdrv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ptl.c platform/x86/intel/pmc: Add Nova Lake support to intel_pmc_core driver 2026-05-08 21:44:32 +03:00
pwrm_telemetry.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
spt.c platform/x86/intel/pmc: Remove unnecessary declarations in header 2025-02-24 13:34:55 +02:00
ssram_telemetry.c platform/x86/intel/pmc: Add NVL PCI IDs for SSRAM telemetry discovery 2026-06-15 02:13:17 +03:00
ssram_telemetry.h platform/x86:intel/pmc: Create Intel PMC SSRAM Telemetry driver 2025-05-08 16:03:40 +03:00
tgl.c platform/x86/intel/pmc: use kcalloc() instead of kzalloc() 2025-08-28 14:53:35 +03:00
wcl.c platform/x86/intel/pmc: Retrieve PMC info only for available PMCs 2026-05-08 21:38:51 +03:00