summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2015-07-21 17:53:42 +0900
committerAlex Deucher <alexander.deucher@amd.com>2015-07-30 00:11:13 -0400
commitb8b918cd65c8e360808f2c95b912393bd74f50b7 (patch)
tree3bdb00414a3052ecc3ce4841e4dd1a10ad4d6d09
parenta07a3ac47e25898c0cf326a7e11381578f4cc14e (diff)
amdgpu/tests: Cast CPU map argument of amdgpu_bo_alloc_and_map to void**
Silences incompatible pointer type compiler warnings. Reviewed-by: Christian König <christian.koenig@amd.com>
-rw-r--r--tests/amdgpu/basic_tests.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c
index 7607e215..44c6e4d4 100644
--- a/tests/amdgpu/basic_tests.c
+++ b/tests/amdgpu/basic_tests.c
@@ -515,7 +515,7 @@ static void amdgpu_command_submission_sdma_write_linear(void)
r = amdgpu_bo_alloc_and_map(device_handle,
sdma_write_length * sizeof(uint32_t),
4096, AMDGPU_GEM_DOMAIN_GTT,
- gtt_flags[loop], &bo, &bo_cpu,
+ gtt_flags[loop], &bo, (void**)&bo_cpu,
&bo_mc, &va_handle);
CU_ASSERT_EQUAL(r, 0);
@@ -600,7 +600,7 @@ static void amdgpu_command_submission_sdma_const_fill(void)
r = amdgpu_bo_alloc_and_map(device_handle,
sdma_write_length, 4096,
AMDGPU_GEM_DOMAIN_GTT,
- gtt_flags[loop], &bo, &bo_cpu,
+ gtt_flags[loop], &bo, (void**)&bo_cpu,
&bo_mc, &va_handle);
CU_ASSERT_EQUAL(r, 0);
@@ -685,8 +685,9 @@ static void amdgpu_command_submission_sdma_copy_linear(void)
r = amdgpu_bo_alloc_and_map(device_handle,
sdma_write_length, 4096,
AMDGPU_GEM_DOMAIN_GTT,
- gtt_flags[loop1], &bo1, &bo1_cpu,
- &bo1_mc, &bo1_va_handle);
+ gtt_flags[loop1], &bo1,
+ (void**)&bo1_cpu, &bo1_mc,
+ &bo1_va_handle);
CU_ASSERT_EQUAL(r, 0);
/* set bo1 */
@@ -696,8 +697,9 @@ static void amdgpu_command_submission_sdma_copy_linear(void)
r = amdgpu_bo_alloc_and_map(device_handle,
sdma_write_length, 4096,
AMDGPU_GEM_DOMAIN_GTT,
- gtt_flags[loop2], &bo2, &bo2_cpu,
- &bo2_mc, &bo2_va_handle);
+ gtt_flags[loop2], &bo2,
+ (void**)&bo2_cpu, &bo2_mc,
+ &bo2_va_handle);
CU_ASSERT_EQUAL(r, 0);
/* clear bo2 */