[PATCH] drm/amdgpu/display: fix warning when compiling without debugfs

Mikita Lipski mlipski at amd.com
Wed Apr 8 13:34:14 UTC 2020


Reviewed-by: Mikita Lipski <mikita.lipski at amd.com>

Thanks,
Mikita

On 2020-04-08 9:31 a.m., Alex Deucher wrote:
> fixes unused variable warning.
> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
>   1 file changed, 1 insertion(+), 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 1155fb686e36..417925a0d739 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -4738,10 +4738,10 @@ amdgpu_dm_connector_atomic_duplicate_state(struct drm_connector *connector)
>   static int
>   amdgpu_dm_connector_late_register(struct drm_connector *connector)
>   {
> +#if defined(CONFIG_DEBUG_FS)
>   	struct amdgpu_dm_connector *amdgpu_dm_connector =
>   		to_amdgpu_dm_connector(connector);
>   
> -#if defined(CONFIG_DEBUG_FS)
>   	connector_debugfs_init(amdgpu_dm_connector);
>   #endif
>   
> 


More information about the amd-gfx mailing list