drm/amd/amdgpu: Fix some warnings in vce4
authorHarry Wentland <harry.wentland@amd.com>
Wed, 15 Mar 2017 20:32:30 +0000 (16:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:13 +0000 (23:55 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c

index 15321495e224b2fbbeea29a35203b5962c1b8197..becc5f744a98fe83e62dabb8ae56bd88e34065e7 100644 (file)
@@ -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;