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

Christian König ckoenig.leichtzumerken at gmail.com
Wed Apr 8 13:32:30 UTC 2020


Am 08.04.20 um 15:31 schrieb Alex Deucher:
> fixes unused variable warning.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Acked-by: Christian König <christian.koenig 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