• Chris Wilson's avatar
    igt/amdgpu: Fix compiler errors · cf6f2c9b
    Chris Wilson authored
    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's avatarChris Wilson <chris@chris-wilson.co.uk>
    cf6f2c9b
amd_basic.c 38.1 KB