From c6fcd176e8949148ad2e07b0ee970cd1ad287113 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 26 Jan 2018 11:12:06 +0000 Subject: tests/amdgpu: add parentheses to make operation priority explicit While at it, align with the other half on the next line. Cc: Andrey Grodzovsky Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- tests/amdgpu/basic_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/amdgpu/basic_tests.c b/tests/amdgpu/basic_tests.c index 0f75e896..6ee0aa3b 100644 --- a/tests/amdgpu/basic_tests.c +++ b/tests/amdgpu/basic_tests.c @@ -1608,7 +1608,7 @@ static void amdgpu_sync_dependency_test(void) j = i; ptr[i++] = PACKET3(PACKET3_WRITE_DATA, 3); ptr[i++] = WRITE_DATA_DST_SEL(5) | WR_CONFIRM; - ptr[i++] = 0xfffffffc & ib_result_mc_address + DATA_OFFSET * 4; + ptr[i++] = 0xfffffffc & (ib_result_mc_address + DATA_OFFSET * 4); ptr[i++] = (0xffffffff00000000 & (ib_result_mc_address + DATA_OFFSET * 4)) >> 32; ptr[i++] = 99; -- cgit v1.2.3-54-g00ecf