Minor interface improvement to pointer info.

Take in const void* rather than void*.  This does not break the
abi or existing code.  Existing code would need to cast away any
const which is unnecessary and annoying.

Change-Id: I28787e8fab1b600bf6871ea82835e10a4f475c5b
This commit is contained in:
Sean Keely
2021-07-15 14:10:37 -05:00
parent ed7eec14e1
commit 270d042ef8
6 changed files with 12 additions and 12 deletions
@@ -1079,13 +1079,13 @@ hsa_status_t HSA_API hsa_amd_image_create(
}
// Mirrors Amd Extension Apis
hsa_status_t hsa_amd_pointer_info(void* ptr, hsa_amd_pointer_info_t* info, void* (*alloc)(size_t),
hsa_status_t hsa_amd_pointer_info(const void* ptr, hsa_amd_pointer_info_t* info, void* (*alloc)(size_t),
uint32_t* num_agents_accessible, hsa_agent_t** accessible) {
return amdExtTable->hsa_amd_pointer_info_fn(ptr, info, alloc, num_agents_accessible, accessible);
}
// Mirrors Amd Extension Apis
hsa_status_t hsa_amd_pointer_info_set_userdata(void* ptr, void* userptr) {
hsa_status_t hsa_amd_pointer_info_set_userdata(const void* ptr, void* userptr) {
return amdExtTable->hsa_amd_pointer_info_set_userdata_fn(ptr, userptr);
}