mirror-linux/drivers/gpu/drm/panthor
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
..
Kconfig
Makefile drm/panthor: Introduce panthor_pwr API and power control framework 2025-11-26 10:56:18 +01:00
panthor_devfreq.c drm/panthor: Use existing OPP table if present 2025-11-03 15:28:39 +00:00
panthor_devfreq.h drm/panthor: call into devfreq for current frequency 2025-11-03 15:27:25 +00:00
panthor_device.c drm/panthor: Expose the selected coherency protocol to the UMD 2025-12-09 13:09:36 +01:00
panthor_device.h drm/panthor: Introduce panthor_pwr API and power control framework 2025-11-26 10:56:18 +01:00
panthor_drv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
panthor_drv.h drm/panthor: Introduce huge tmpfs mountpoint option 2025-12-08 10:55:41 +01:00
panthor_fw.c drm/panthor: Fix NULL pointer dereference on panthor_fw_unplug 2025-12-17 14:15:24 +01:00
panthor_fw.h drm/panthor: Support 64-bit endpoint_req register for Mali-G1 2025-11-26 10:56:19 +01:00
panthor_gem.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
panthor_gem.h drm/panthor: Add a PANTHOR_BO_SYNC ioctl 2025-12-09 13:09:36 +01:00
panthor_gpu.c drm/panthor: Expose the selected coherency protocol to the UMD 2025-12-09 13:09:36 +01:00
panthor_gpu.h drm/panthor: Add architecture-specific function operations 2025-11-26 10:56:18 +01:00
panthor_heap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
panthor_heap.h
panthor_hw.c drm/panthor: Implement reading shader_present from nvmem 2026-01-13 17:06:15 +01:00
panthor_hw.h drm/panthor: Introduce panthor_pwr API and power control framework 2025-11-26 10:56:18 +01:00
panthor_mmu.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
panthor_mmu.h
panthor_pwr.c drm/panthor: Implement soft reset via PWR_CONTROL 2025-11-26 10:56:19 +01:00
panthor_pwr.h drm/panthor: Implement soft reset via PWR_CONTROL 2025-11-26 10:56:19 +01:00
panthor_regs.h drm/panthor: Implement L2 power on/off via PWR_CONTROL 2025-11-26 10:56:18 +01:00
panthor_sched.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
panthor_sched.h drm/panthor: Evict groups before VM termination 2025-12-19 11:57:55 +01:00