linux_dsm_epyc7002/drivers/gpu/drm/amd
Nathan Chancellor 07863a6cc2 drm/amd/display: Use NULL for pointer assignment in copy_stream_update_to_stream
Clang warns:

../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1965:26: warning:
expression which evaluates to zero treated as a null pointer constant of
type 'struct dc_dsc_config *' [-Wnon-literal-null-conversion]
                                update->dsc_config = false;
                                                     ^~~~~
../drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:1971:25: warning:
expression which evaluates to zero treated as a null pointer constant of
type 'struct dc_dsc_config *' [-Wnon-literal-null-conversion]
                        update->dsc_config = false;
                                             ^~~~~
2 warnings generated.

Fixes: f6fe4053b9 ("drm/amd/display: Use a temporary copy of the current state when updating DSC config")
Link: https://github.com/ClangBuiltLinux/linux/issues/777
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-11-26 09:48:57 -05:00
..
acp drm/amd: Fix Kconfig indentation 2019-11-25 11:20:17 -05:00
amdgpu drm/amdgpu: Resolved offchip EEPROM I/O issue 2019-11-25 11:20:10 -05:00
amdkfd drm/amdkfd: Remove duplicate functions update_mqd_hiq() 2019-11-22 14:27:11 -05:00
display drm/amd/display: Use NULL for pointer assignment in copy_stream_update_to_stream 2019-11-26 09:48:57 -05:00
include drm/amdgpu: refine query function of mmhub EDC counter in vg20 2019-11-22 14:26:46 -05:00
powerplay drm/amd/powerplay: remove redundant assignment to variables HiSidd and LoSidd 2019-11-26 09:48:57 -05:00