Commit f01afd1
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: c920888 ("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>1 parent e689f71 commit f01afd1
File tree
2 files changed
+2
-4
lines changed- drivers/gpu/drm/amd/display/amdgpu_dm
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8378 | 8378 | | |
8379 | 8379 | | |
8380 | 8380 | | |
8381 | | - | |
8382 | | - | |
| 8381 | + | |
8383 | 8382 | | |
8384 | 8383 | | |
8385 | 8384 | | |
| |||
8400 | 8399 | | |
8401 | 8400 | | |
8402 | 8401 | | |
8403 | | - | |
8404 | 8402 | | |
8405 | 8403 | | |
8406 | 8404 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments