diff options
author | Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> | 2019-03-22 09:59:32 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-04-10 13:53:27 -0500 |
commit | 2aa632c5ffbedb2ee0e68857683466ea788f17eb (patch) | |
tree | 50afeed980ce78f24d9a63aa0b9634079f9bad39 /drivers/gpu/drm/amd/display/modules/power/power_helpers.c | |
parent | 3d12beb319c4efa18d55454096cc523108320d17 (diff) |
drm/amd/display: Initialize stream_update with memset
The brace initialization used here generates warnings on some
compilers. For example, on GCC 4.9:
[...] In function ‘dm_determine_update_type_for_commit’:
[...] error: missing braces around initializer [-Werror=missing-braces]
struct dc_stream_update stream_update = { 0 };
^
Use memset to make this more portable.
v2: Specify the compiler / diagnostic in the commit message (Paul)
Cc: Sun peng Li <Sunpeng.Li@amd.com>
Cc: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/power/power_helpers.c')
0 files changed, 0 insertions, 0 deletions