From: Harry Wentland Date: Wed, 15 Mar 2017 20:32:30 +0000 (-0400) Subject: drm/amd/amdgpu: Fix some warnings in vce4 X-Git-Tag: v4.14-rc1~674^2~26^2~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e8e453a7093a4e9955016dad77776b0a6009947;p=platform%2Fkernel%2Flinux-rpi3.git drm/amd/amdgpu: Fix some warnings in vce4 Signed-off-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c index 15321495..becc5f7 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;