]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2021 12:48:43 +0000 (13:48 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Feb 2021 23:49:44 +0000 (09:49 +1000)
commit20e4e271a4328496f532c123c8b27c35707cbe81
tree1d2e39c7c339dff0ae74052e56e44c41bb9b4b39
parent473e3f4a09a5fbd30a9be30aadbb990d8b4bf5b0
drm/amd/display: fix unused variable warning

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: a07bc2b2ae8a ("drm/amd/display: Fix deadlock during gpu reset v3")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210125124849.102037-1-arnd@kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c