diff options
Diffstat (limited to 'tests/amdgpu/security_tests.c')
-rw-r--r-- | tests/amdgpu/security_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/amdgpu/security_tests.c b/tests/amdgpu/security_tests.c index 280e862d..e6c9f9a8 100644 --- a/tests/amdgpu/security_tests.c +++ b/tests/amdgpu/security_tests.c @@ -305,7 +305,7 @@ static void amdgpu_secure_bounce(void) /* Fill Alice with a pattern. */ for (pp = alice.bo->cpu_ptr; - pp < (typeof(pp)) alice.bo->cpu_ptr + SECURE_BUFFER_SIZE; + pp < (__typeof__(pp)) alice.bo->cpu_ptr + SECURE_BUFFER_SIZE; pp += sizeof(secure_pattern)) memcpy(pp, secure_pattern, sizeof(secure_pattern)); @@ -343,7 +343,7 @@ static void amdgpu_secure_bounce(void) /* Verify the contents of Alice. */ for (pp = alice.bo->cpu_ptr; - pp < (typeof(pp)) alice.bo->cpu_ptr + SECURE_BUFFER_SIZE; + pp < (__typeof__(pp)) alice.bo->cpu_ptr + SECURE_BUFFER_SIZE; pp += sizeof(secure_pattern)) { res = memcmp(pp, secure_pattern, sizeof(secure_pattern)); if (res) { |