]> 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)
commit49b56a22d37c2dadb94804d384b60a19eca832fa
tree94a92c01637952b55c7201c94b8db7a13e42b6dd
parent2e6b4f642b6b265cb61a5fc62a438feeffb27491
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