From 9e8e453a7093a4e9955016dad77776b0a6009947 Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Wed, 15 Mar 2017 16:32:30 -0400 Subject: [PATCH] drm/amd/amdgpu: Fix some warnings in vce4 Signed-off-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c index 15321495e224..becc5f744a98 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c @@ -256,10 +256,10 @@ static int vce_v4_0_sriov_start(struct amdgpu_device *adev) struct amdgpu_ring *ring; uint32_t offset, size; uint32_t table_size = 0; - struct mmsch_v1_0_cmd_direct_write direct_wt = {0}; - struct mmsch_v1_0_cmd_direct_read_modify_write direct_rd_mod_wt = {0}; - struct mmsch_v1_0_cmd_direct_polling direct_poll = {0}; - struct mmsch_v1_0_cmd_end end = {0}; + struct mmsch_v1_0_cmd_direct_write direct_wt = { { 0 } }; + struct mmsch_v1_0_cmd_direct_read_modify_write direct_rd_mod_wt = { { 0 } }; + struct mmsch_v1_0_cmd_direct_polling direct_poll = { { 0 } }; + struct mmsch_v1_0_cmd_end end = { { 0 } }; uint32_t *init_table = adev->virt.mm_table.cpu_addr; struct mmsch_v1_0_init_header *header = (struct mmsch_v1_0_init_header *)init_table; -- 2.20.1