summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-03-15 21:32:30 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-03-30 05:55:13 +0200
commit9e8e453a7093a4e9955016dad77776b0a6009947 (patch)
tree1e9d1accc23ec428cb40416ede5d0e98dcb55632 /drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
parentdrm/amdgpu/vce4: impl vce & mmsch sriov start (diff)
downloadlinux-9e8e453a7093a4e9955016dad77776b0a6009947.tar.xz
linux-9e8e453a7093a4e9955016dad77776b0a6009947.zip
drm/amd/amdgpu: Fix some warnings in vce4
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vce_v4_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vce_v4_0.c8
1 files 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;