On 2021-01-25 7:48 a.m., Arnd Bergmann wrote:
From: Arnd Bergmann
After all users of the 'dm' warnings got hidden in an #ifdef,
the compiler started warning about it being unused:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5380:33: error:
unused variable 'dm' [-Werror,-Wunuse
From: Arnd Bergmann
After all users of the 'dm' warnings got hidden in an #ifdef,
the compiler started warning about it being unused:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5380:33: error:
unused variable 'dm' [-Werror,-Wunused-variable]
Add another such #ifdef.
Fixes: 98
; ; Simon Ser ; Brol, Eryk
> ; Bas Nieuwenhuizen ; Lakha,
> Bhawanpreet ; dri-devel@lists.freedesktop.org;
> linux-ker...@vger.kernel.org
> Subject: [PATCH] drm/amd/display: Fix unused variable warning
>
> From: Arnd Bergmann
>
> Some of the newly added code is hidde
; R, Bindu ; Lin, Wayne
Cc: Arnd Bergmann ; Kazlauskas, Nicholas
; Siqueira, Rodrigo ;
Pillai, Aurabindo ; Wang, Chao-kai (Stylon)
; Simon Ser ; Brol, Eryk
; Bas Nieuwenhuizen ; Lakha,
Bhawanpreet ; dri-devel@lists.freedesktop.org;
linux-ker...@vger.kernel.org
Subject: [PATCH] drm/amd/display
From: Arnd Bergmann
Some of the newly added code is hidden inside of #ifdef
blocks, but one variable is unused when debugfs is disabled:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8370:8: error:
unused variable 'configure_crc' [-Werror,-Wunused-variable]
Change the #ifdef to a