From 8e2138b23bcfcbe8502a3effb86ea821e3da3c8e Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 9 Apr 2020 09:59:46 -0500 Subject: [PATCH] fxing C compatibility (amd-master-next) Change-Id: Ib95b953bb49e0edbe044789b6ff81aaccb87f85f --- hipamd/vdi/hip_prof_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/vdi/hip_prof_gen.py b/hipamd/vdi/hip_prof_gen.py index 5c3f84e536..04f92e0a00 100755 --- a/hipamd/vdi/hip_prof_gen.py +++ b/hipamd/vdi/hip_prof_gen.py @@ -427,7 +427,7 @@ def generate_prof_header(f, api_map, opts_map): # Generating the callbacks data structure f.write('\n// HIP API callbacks data structure\n') f.write( - 'struct hip_api_data_t {\n' + + 'typedef struct hip_api_data_s {\n' + ' uint64_t correlation_id;\n' + ' uint32_t phase;\n' + ' union {\n' @@ -443,7 +443,7 @@ def generate_prof_header(f, api_map, opts_map): f.write(' } ' + name + ';\n') f.write( ' } args;\n' + - '};\n' + '} hip_api_data_t;\n' ) # Generating the callbacks args data filling macros