diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-01-03 15:02:32 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-01-06 16:21:27 -0500 |
commit | 4f6a05501eb9c57fb4c9efed70840aee523a393b (patch) | |
tree | 918ee21d17727fc24275203807725ae0b296d5f8 /tools/perf/scripts/python/stackcollapse.py | |
parent | 98b64762080b96b0f8608da5fe161f1a7ab6f5de (diff) |
drm/amd/display: Fix unused variable warning
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 an if(IS_ENABLED()) check to fix the warning
and avoid adding more #ifdefs.
Fixes: c920888c604d ("drm/amd/display: Expose new CRC window property")
Reviewed-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions