[PATCH] drm/amdgpu/display: fix warning when CONFIG_DRM_AMD_DC_DCN is not set

Kazlauskas, Nicholas Nicholas.Kazlauskas at amd.com
Fri Nov 8 16:34:17 UTC 2019


On 2019-11-08 11:24 a.m., Alex Deucher wrote:
> dm_dcn_crtc_high_irq() is only used when CONFIG_DRM_AMD_DC_DCN is set.
> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>

Thanks!

> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> 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 d2c236946909..ef40adf187f6 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -485,7 +485,7 @@ static void dm_crtc_high_irq(void *interrupt_params)
>   	}
>   }
>   
> -
> +#if defined(CONFIG_DRM_AMD_DC_DCN)
>   /**
>    * dm_dcn_crtc_high_irq() - Handles VStartup interrupt for DCN generation ASICs
>    * @interrupt params - interrupt parameters
> @@ -547,6 +547,7 @@ static void dm_dcn_crtc_high_irq(void *interrupt_params)
>   
>   	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
>   }
> +#endif
>   
>   static int dm_set_clockgating_state(void *handle,
>   		  enum amd_clockgating_state state)
> 



More information about the amd-gfx mailing list