mirror-linux/drivers/platform/x86/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
..
atomisp2
ifs Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
int1092 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
int3472 Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
pmc Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pmt Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
speed_select_if Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
telemetry platform/x86: intel_telemetry: Fix PSS event register mask 2026-01-26 16:42:43 +02:00
uncore-frequency Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
wmi platform-drivers-x86 for v7.0-1 2026-02-13 15:39:15 -08:00
Kconfig platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
Makefile platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
bxtwc_tmu.c
bytcrc_pwrsrc.c platform/x86/intel: bytcrc_pwrsrc: Optionally register a power_supply dev 2024-12-10 15:29:37 +02:00
chtdc_ti_pwrbtn.c
chtwc_int33fe.c platform/x86: intel: chtwc_int33fe: don't dereference swnode args 2025-11-21 15:31:43 +01:00
crystal_cove_charger.c
ehl_pse_io.c platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
hid.c platform/x86/intel/hid: Stop creating a platform device 2025-12-16 21:51:04 +01:00
int0002_vgpio.c platform/x86: int0002: Remove IRQF_ONESHOT from request_irq() 2026-02-01 17:37:13 +01:00
ishtp_eclite.c
mrfld_pwrbtn.c
oaktrail.c
plr_tpmi.c platform/x86/intel/tpmi/plr: Make the file domain<n>/status writeable 2026-01-29 14:38:40 +02:00
punit_ipc.c platform/x86: intel: punit_ipc: fix memory corruption 2025-11-24 15:03:22 +02:00
rst.c
sdsi.c sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
smartconnect.c
tpmi_power_domains.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tpmi_power_domains.h platform/x86/intel: power-domains: Add interface to get Linux die ID 2025-05-15 14:47:25 +03:00
turbo_max_3.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
vbtn.c platform/x86/intel/vbtn: Stop creating a platform device 2025-12-16 21:51:04 +01:00
vsec.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vsec_tpmi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00