]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix build error on arm64
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 11 Oct 2022 12:41:03 +0000 (20:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Oct 2022 15:06:02 +0000 (11:06 -0400)
commitdd4b74e5bc55b3de336d451b174830c484f0bbf2
treea0410884d42292673a2106e024ff623607fb9696
parenteb05297229cfc7ebb74877c0f3de7480eeeb0322
drm/amd/display: fix build error on arm64

dcn20_build_mapped_resource() and dcn20_acquire_dsc() is not defined,
if CONFIG_DRM_AMD_DC_DCN is disabled.

Fix the following build error on arm64:

  ERROR: modpost: "dcn20_build_mapped_resource" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
  ERROR: modpost: "dcn20_acquire_dsc" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

Fixes: 2d5169ed3449 ("drm/amd/display: Add a helper to map ODM/MPC/Multi-Plane resources")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c