From: Alex Deucher Date: Fri, 7 May 2021 20:33:28 +0000 (-0400) Subject: drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not defined X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=50610b74eea70eafedc47db4ee2ed372aca77c1c;p=uclinux-h8%2Flinux.git drm/amdgpu/display: fix build when CONFIG_DRM_AMD_DC_DCN is not defined Fixes: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_initialize_drm_device’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:3726:7: error: implicit declaration of function ‘register_outbox_irq_handlers’; did you mean ‘register_hpd_handlers’? [-Werror=implicit-function-declaration] 3726 | if (register_outbox_irq_handlers(dm->adev)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | register_hpd_handlers Fixes: 81927e2808be ("drm/amd/display: Support for DMUB AUX") Reviewed-by: Jude Shih Signed-off-by: Alex Deucher Cc: Jude Shish --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 820df911371d..5df187a6e25f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3718,6 +3718,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev) goto fail; } +#if defined(CONFIG_DRM_AMD_DC_DCN) /* Use Outbox interrupt */ switch (adev->asic_type) { case CHIP_SIENNA_CICHLID: @@ -3731,6 +3732,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev) default: DRM_DEBUG_KMS("Unsupported ASIC type for outbox: 0x%X\n", adev->asic_type); } +#endif /* loops over all connectors on the board */ for (i = 0; i < link_cnt; i++) {