summaryrefslogtreecommitdiff
path: root/tests/amdgpu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-04-25 13:49:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-25 14:21:35 +0100
commitcf6f2c9be161e3ca6dd210f4d576cea52883c6bc (patch)
treeac7a508470a159ded7890a1d0e18e8300d1bb01c /tests/amdgpu
parentf53eef5448ceb1994bdceadbd6963ffb46dfb052 (diff)
igt/amdgpu: Fix compiler errors
amdgpu/amd_basic.c: In function ‘amdgpu_semaphore_test’: amdgpu/amd_basic.c:555:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_request ibs_request[2] = {0}; ^ amdgpu/amd_basic.c:555:9: error: (near initialization for ‘ibs_request[0]’) [-Werror=missing-braces] amdgpu/amd_basic.c:556:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_ib_info ib_info[2] = {0}; ^ amdgpu/amd_basic.c:556:9: error: (near initialization for ‘ib_info[0]’) [-Werror=missing-braces] amdgpu/amd_basic.c: In function ‘amdgpu_command_submission_multi_fence_wait_all’: amdgpu/amd_basic.c:1210:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_request ibs_request[2] = {0}; ^ amdgpu/amd_basic.c:1210:9: error: (near initialization for ‘ibs_request[0]’) [-Werror=missing-braces] amdgpu/amd_basic.c:1212:9: error: missing braces around initializer [-Werror=missing-braces] struct amdgpu_cs_fence fence_status[2] = {0}; ^ amdgpu/amd_basic.c:1212:9: error: (near initialization for ‘fence_status[0]’) [-Werror=missing-braces] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/amdgpu')
-rw-r--r--tests/amdgpu/amd_basic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/amdgpu/amd_basic.c b/tests/amdgpu/amd_basic.c
index 2d7309c9..5e44b123 100644
--- a/tests/amdgpu/amd_basic.c
+++ b/tests/amdgpu/amd_basic.c
@@ -552,9 +552,9 @@ static void amdgpu_semaphore_test(void)
amdgpu_bo_handle ib_result_handle[2];
void *ib_result_cpu[2];
uint64_t ib_result_mc_address[2];
- struct amdgpu_cs_request ibs_request[2] = {0};
- struct amdgpu_cs_ib_info ib_info[2] = {0};
- struct amdgpu_cs_fence fence_status = {0};
+ struct amdgpu_cs_request ibs_request[2] = {};
+ struct amdgpu_cs_ib_info ib_info[2] = {};
+ struct amdgpu_cs_fence fence_status = {};
uint32_t *ptr;
uint32_t expired;
amdgpu_bo_list_handle bo_list[2];
@@ -1207,9 +1207,9 @@ static void amdgpu_command_submission_multi_fence_wait_all(bool wait_all)
amdgpu_bo_handle ib_result_handle, ib_result_ce_handle;
void *ib_result_cpu, *ib_result_ce_cpu;
uint64_t ib_result_mc_address, ib_result_ce_mc_address;
- struct amdgpu_cs_request ibs_request[2] = {0};
+ struct amdgpu_cs_request ibs_request[2] = {};
struct amdgpu_cs_ib_info ib_info[2];
- struct amdgpu_cs_fence fence_status[2] = {0};
+ struct amdgpu_cs_fence fence_status[2] = {};
uint32_t *ptr;
uint32_t expired;
amdgpu_bo_list_handle bo_list;