]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: Protect some functions with CONFIG_DRM_AMD_DC_DCN
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Jun 2022 02:22:07 +0000 (22:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:45:01 +0000 (16:45 -0400)
commitb86c71250e416e933c65667a964fb6963f57407a
tree94a92c01637952b55c7201c94b8db7a13e42b6dd
parent944164c65a5f321c1c4d4baf90112d326dd28b90
drm/amdgpu/display: Protect some functions with CONFIG_DRM_AMD_DC_DCN

Protect remove_hpo_dp_link_enc_from_ctx() and release_hpo_dp_link_enc()
with CONFIG_DRM_AMD_DC_DCN as the functions are only called from code
that is protected by CONFIG_DRM_AMD_DC_DCN.  Fixes build fail with
-Werror=unused-function.

Fixes: 9b0e0d433f74 ("drm/amd/display: Add dependant changes for DCN32/321")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c