]> git.ipfire.org Git - people/ms/linux.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)
commitd8e4fb9112e88d8d87ffbc38fa511e7118042d4f
tree94a92c01637952b55c7201c94b8db7a13e42b6dd
parent3e80a5b068a5fedc69ada30ba1a2d1e0b76dfc25
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