fxing C compatibility (amd-master-next)

Change-Id: Ib95b953bb49e0edbe044789b6ff81aaccb87f85f


[ROCm/hip commit: b8b5bdf44b]
This commit is contained in:
Evgeny
2020-04-09 09:59:46 -05:00
parent db438076ec
commit d8bf004506
+2 -2
Vedi File
@@ -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