mirror-linux/drivers/gpu/drm/amd/display/dc
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
..
basics Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
bios Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
clk_mgr Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
core Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
dccg Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dce Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
dce60
dce80
dce110 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dce112 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dce120
dcn10
dcn20
dcn21
dcn30 drm/amd/display: extend delta clamping logic to CM3 LUT helper 2026-02-03 16:47:25 -05:00
dcn31
dcn201
dcn301
dio Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dml Revert "drm/amd/display: Add Gfx Base Case For Linear Tiling Handling" 2026-02-19 12:16:11 -05:00
dml2_0 Revert "drm/amd/display: Add Handling for gfxversion DcGfxBase" 2026-02-19 12:16:11 -05:00
dpp drm/amd/display: bypass post csc for additional color spaces in dal 2026-02-12 15:16:09 -05:00
dsc drm/amd/display: Make DSC FGCG a DSC block level function 2026-02-03 16:39:37 -05:00
dwb Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gpio Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
hdcp
hpo
hubbub drm/amd/display: Expose functions of other dcn use 2026-02-19 12:16:10 -05:00
hubp Revert "drm/amd/display: Add Gfx Base Case For Linear Tiling Handling" 2026-02-19 12:16:11 -05:00
hwss Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
inc drm/amd/display: Enable DAC in DCE link encoder 2026-02-19 12:16:12 -05:00
irq Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
link Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mmhubbub
mpc drm/amd/display: Remove conditional for shaper 3DLUT power-on 2026-02-19 12:16:11 -05:00
opp
optc drm/amd/display: Expose functions of other dcn use 2026-02-19 12:16:10 -05:00
pg Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
resource Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
soc_and_ip_translator Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sspl drm/amd/display: Add static keyword for sharpness tables 2026-02-18 10:42:30 -05:00
Makefile drm/amd/display: Refactor virtual directory reorganize encoder and hwss files. 2026-02-12 15:08:49 -05:00
dc.h drm/amd/display: Disable SR feature on eDP1 by default 2026-02-19 12:16:10 -05:00
dc_bios_types.h
dc_ddc_types.h
dc_dmub_srv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dc_dmub_srv.h
dc_dp_types.h drm/amd/display: PR error HPD_IRQ handling 2026-01-10 14:21:53 -05:00
dc_dsc.h
dc_edid_parser.c
dc_edid_parser.h
dc_fused_io.c
dc_fused_io.h
dc_hdmi_types.h drm/amd/display: Bump the HDMI clock to 340MHz 2026-01-10 14:21:53 -05:00
dc_helper.c
dc_hw_types.h Revert "drm/amd/display: Add Gfx Base Case For Linear Tiling Handling" 2026-02-19 12:16:11 -05:00
dc_plane.h
dc_plane_priv.h
dc_spl_translate.c
dc_spl_translate.h
dc_stat.h
dc_state.h
dc_state_priv.h
dc_stream.h drm/amd/display: Implementing ramless idle mouse trigger 2026-02-19 12:16:10 -05:00
dc_stream_priv.h
dc_trace.h
dc_types.h drm/amd/display: Add oem panel config for new features 2026-02-03 16:39:58 -05:00
dm_cp_psp.h
dm_event_log.h
dm_helpers.h drm/amd/display: Disable SR feature on eDP1 by default 2026-02-19 12:16:10 -05:00
dm_pp_smu.h
dm_services.h
dm_services_types.h
irq_types.h
os_types.h