linux/drivers/gpu/drm/amd/display
Jiri Slaby (SUSE) 545094d993 drm/amd/display (gcc13): fix enum mismatch
rn_vbios_smu_set_dcn_low_power_state() produces a valid warning with
gcc-13:
  drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.c:237:6: error: conflicting types for 'rn_vbios_smu_set_dcn_low_power_state' due to enum/integer mismatch; have 'void(struct clk_mgr_internal *, enum dcn_pwr_state)'
  drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr_vbios_smu.h:36:6: note: previous declaration of 'rn_vbios_smu_set_dcn_low_power_state' with type 'void(struct clk_mgr_internal *, int)'

I.e. the type of the 2nd parameter of
rn_vbios_smu_set_dcn_low_power_state() in the declaration is int, while
the definition spells enum dcn_pwr_state. Synchronize them to the
latter (and add a forward enum declaration).

Cc: Martin Liska <mliska@suse.cz>
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Cc: David Airlie <airlied@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-11-01 11:48:37 -04:00
..
amdgpu_dm drm/amd/display: drop vblank_lock from struct amdgpu_display_manager 2022-11-01 11:46:12 -04:00
dc drm/amd/display (gcc13): fix enum mismatch 2022-11-01 11:48:37 -04:00
dmub drm/amd/display: [FW Promotion] Release 0.0.141.0 2022-11-01 11:47:45 -04:00
include drm/amd/display: Refactor LTTPR mode selection 2022-09-29 09:41:46 -04:00
modules drm/amd/display: Wrong colorimetry workaround 2022-10-27 14:45:14 -04:00
Kconfig drm/amdgpu/display: remove unneeded "default n" options 2022-09-13 14:32:58 -04:00
Makefile
TODO