mirror_ubuntu-kernels/drivers/gpu/drm/amd
Nathan Chancellor 5fbdb1f38d drm/amd/display: Don't take the address of skip_scdc_overwrite in dc_link_detect_helper
Clang warns:

../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:980:36:
warning: address of 'sink->edid_caps.panel_patch.skip_scdc_overwrite'
will always evaluate to 'true' [-Wpointer-bool-conversion]
                if (&sink->edid_caps.panel_patch.skip_scdc_overwrite)
                ~~   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
1 warning generated.

This is probably not what was intended so remove the address of
operator, which matches how skip_scdc_overwrite is handled in the rest
of the driver.

While we're here, drop an extra newline after this if block.

Fixes: a760fc1bff ("drm/amd/display: add monitor patch to disable SCDC read/write")
Link: https://github.com/ClangBuiltLinux/linux/issues/879

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-02-19 10:36:26 -05:00
..
acp drm/amdgpu: fix license on Kconfig and Makefiles 2019-12-11 15:22:08 -05:00
amdgpu drm/amdgpu: return -EFAULT if copy_to_user() fails 2020-02-12 16:04:41 -05:00
amdkfd drm/amdkfd: refactor runtime pm for baco 2020-02-12 16:00:54 -05:00
display drm/amd/display: Don't take the address of skip_scdc_overwrite in dc_link_detect_helper 2020-02-19 10:36:26 -05:00
include drm/amdgpu: Enable DISABLE_BARRIER_WAITCNT for Arcturus 2020-01-30 17:15:27 -05:00
powerplay drm/amd/powerplay: correct the way for checking SMU_FEATURE_BACO_BIT support 2020-02-13 16:16:45 -05:00