]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: hide an unused variable
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Sep 2019 19:53:58 +0000 (21:53 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Oct 2019 17:58:33 +0000 (12:58 -0500)
commit30973cdebabf1852ba27fcae6863041a823eea75
tree4661d1f91e7e6c238509bd58f59141f7e646dcb0
parent846cf1638b57d087e4c863a32aa49bbbe1fd4523
drm/amd/display: hide an unused variable

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: fa77a84fc038 ("drm/amd/display: add functionality to grab DPRX CRC entries.")
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c