Re: [PATCH] drm/amd/display: hide an unused variable

2019-09-19 Thread Alex Deucher
On Thu, Sep 19, 2019 at 9:45 AM Harry Wentland wrote: > > On 2019-09-18 3:53 p.m., Arnd Bergmann wrote: > > Without CONFIG_DEBUG_FS, we get a warning for an unused > > variable: > > > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6020:33: error: > > unused variable 'source'

Re: [PATCH] drm/amd/display: hide an unused variable

2019-09-19 Thread Harry Wentland
On 2019-09-18 3:53 p.m., Arnd Bergmann wrote: > Without CONFIG_DEBUG_FS, we get a warning for an unused > variable: > > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6020:33: error: > unused variable 'source' [-Werror,-Wunused-variable] > > Hide the variable in an #ifdef like its

[PATCH] drm/amd/display: hide an unused variable

2019-09-18 Thread Arnd Bergmann
Without CONFIG_DEBUG_FS, we get a warning for an unused variable: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6020:33: error: unused variable 'source' [-Werror,-Wunused-variable] Hide the variable in an #ifdef like its only users. Fixes: 14b2584636c6 ("drm/amd/display: add