summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
diff options
context:
space:
mode:
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>2018-06-18 12:23:03 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-13 14:49:43 -0500
commit1a2eaed80a0bd19f69da880d87f037f5829fb664 (patch)
treef8a1db866b852727b90d229a9b23f817a4b9b5f9 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
parentf8ac2cf78f276b4d9fc0bc6b90f5e3560caa11de (diff)
downloadlinux-1a2eaed80a0bd19f69da880d87f037f5829fb664.tar.gz
linux-1a2eaed80a0bd19f69da880d87f037f5829fb664.tar.bz2
linux-1a2eaed80a0bd19f69da880d87f037f5829fb664.zip
drm/amd/display: Fix compile error on older GCC versions
GCC 4.9 reports a 'missing braces around initializer' error. This is a bug, documented here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 Fix it by adding another brace. Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com> Reviewed-by: Mikita Lipski <Mikita.Lipski@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
index 7b51b8fde3fe..59b113d11f66 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
@@ -514,8 +514,8 @@ enum dc_edid_status dm_helpers_read_local_edid(
edid_status,
aconnector->base.name);
if (link->aux_mode) {
- union test_request test_request = {0};
- union test_response test_response = {0};
+ union test_request test_request = { {0} };
+ union test_response test_response = { {0} };
dm_helpers_dp_read_dpcd(ctx,
link,