linux/drivers/gpu/drm/vmwgfx
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
..
device_include
Kconfig PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
Makefile drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
ttm_object.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ttm_object.h
vmw_surface_cache.h
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vmwgfx_bo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_bo.h drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_cmd.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_cmdbuf.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_cmdbuf_res.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_context.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_cotable.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_cursor_plane.c drm/vmwgfx: Restore Guest-Backed only cursor plane support 2025-11-07 00:01:15 -05:00
vmwgfx_cursor_plane.h drm/vmwgfx: Restore Guest-Backed only cursor plane support 2025-11-07 00:01:15 -05:00
vmwgfx_devcaps.c
vmwgfx_devcaps.h
vmwgfx_drv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_drv.h drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
vmwgfx_execbuf.c drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE 2025-11-06 23:59:40 -05:00
vmwgfx_fence.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_fence.h drm/vmwgfx: Implement dma_fence_ops properly 2025-06-17 22:49:33 -04:00
vmwgfx_gem.c drm/ttm: rename ttm_bo_put to _fini v3 2025-09-17 14:03:21 +02:00
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_ioctl.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_irq.c drm/vmwgfx: Implement dma_fence_ops properly 2025-06-17 22:49:33 -04:00
vmwgfx_kms.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vmwgfx_kms.h drm/vmwgfx: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct() 2025-07-16 20:12:09 +03:00
vmwgfx_ldu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_mksstat.h
vmwgfx_mob.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_msg.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
vmwgfx_msg_arm64.h
vmwgfx_msg_x86.h
vmwgfx_overlay.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_page_dirty.c drm/vmwgfx: Use kref in vmw_bo_dirty 2025-11-07 00:00:53 -05:00
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_shader.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_simple_resource.c
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_streamoutput.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_surface.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
vmwgfx_system_manager.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_ttm_buffer.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vmwgfx_va.c
vmwgfx_validation.c drm/vmwgfx: Fix copy-paste typo in validation 2025-10-06 11:57:59 -04:00
vmwgfx_validation.h
vmwgfx_vkms.c drm/vmwgfx: use drm_crtc_vblank_crtc() 2025-11-10 13:24:07 +02:00
vmwgfx_vkms.h