linux/arch/x86/events/intel
Kees Cook 189f164e57 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses
Conversion performed via this Coccinelle script:

  // SPDX-License-Identifier: GPL-2.0-only
  // Options: --include-headers-for-types --all-includes --include-headers --keep-comments
  virtual patch

  @gfp depends on patch && !(file in "tools") && !(file in "samples")@
  identifier ALLOC = {kmalloc_obj,kmalloc_objs,kmalloc_flex,
 		    kzalloc_obj,kzalloc_objs,kzalloc_flex,
		    kvmalloc_obj,kvmalloc_objs,kvmalloc_flex,
		    kvzalloc_obj,kvzalloc_objs,kvzalloc_flex};
  @@

  	ALLOC(...
  -		, GFP_KERNEL
  	)

  $ make coccicheck MODE=patch COCCI=gfp.cocci

Build and boot tested x86_64 with Fedora 42's GCC and Clang:

Linux version 6.19.0+ (user@host) (gcc (GCC) 15.2.1 20260123 (Red Hat 15.2.1-7), GNU ld version 2.44-12.fc42) #1 SMP PREEMPT_DYNAMIC 1970-01-01
Linux version 6.19.0+ (user@host) (clang version 20.1.8 (Fedora 20.1.8-4.fc42), LLD 20.1.8) #1 SMP PREEMPT_DYNAMIC 1970-01-01

Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-02-22 08:26:33 -08:00
..
bts.c perf/x86/intel: Use early_initcall() to hook bts_init() 2025-08-21 20:09:26 +02:00
core.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
cstate.c perf/x86/cstate: Add Airmont NP 2025-12-17 13:31:09 +01:00
ds.c perf/x86/intel: Add core PMU support for Novalake 2026-01-15 10:04:27 +01:00
knc.c Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
lbr.c x86: Restrict KVM-induced symbol exports to KVM modules where obvious/possible 2025-11-12 15:29:38 -08:00
Makefile perf/x86/intel/uncore: Parse uncore discovery tables 2021-04-02 10:04:54 +02:00
p4.c Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
p6.c perf/x86: Use macros to replace magic numbers in attr_rdpmc 2026-01-15 10:04:27 +01:00
pt.c x86: Restrict KVM-induced symbol exports to KVM modules where obvious/possible 2025-11-12 15:29:38 -08:00
pt.h x86/cpu: Move TSC CPUID leaf definition 2024-12-18 06:17:36 -08:00
uncore.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
uncore.h perf/x86/intel/uncore: Add Nova Lake support 2026-01-06 16:34:26 +01:00
uncore_discovery.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
uncore_discovery.h perf/x86/intel/uncore: Add Nova Lake support 2026-01-06 16:34:26 +01:00
uncore_nhmex.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
uncore_snb.c perf/x86/intel/uncore: Convert comma to semicolon 2026-01-15 10:04:28 +01:00
uncore_snbep.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00