From: Harry Wentland Date: Wed, 15 Mar 2017 20:32:30 +0000 (-0400) Subject: drm/amd/amdgpu: Fix some warnings in vce4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e8e453a7093a4e9955016dad77776b0a6009947;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 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;