]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Initialize stream_update with memset
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 22 Mar 2019 13:59:32 +0000 (09:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:27 +0000 (13:53 -0500)
commite5a82f294acb77d5c5253b6e8c391a7e89b94c55
tree50afeed980ce78f24d9a63aa0b9634079f9bad39
parente3fc070ed46e62d8c98d6a5b48b375f51d4a631e
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c