wsl/hsakmt: Fix conversion warnings by using 0 for Non-Pointers
This patch addresses several compiler warnings related to the use of NULL with non-pointer types, such as D3DKMT_HANDLE, uint64_t, and uint32_t. Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com> Reviewed-by: tiancyin <tianci.yin@amd.com> Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/16>
This commit is contained in:
+1
-1
@@ -528,7 +528,7 @@ uint64_t ComputeQueue::GetKernelObjAddr(uint64_t addr) const {
|
||||
auto ret = hsakmt_hsa_ven_amd_loader_query_host_address(reinterpret_cast<const void *>(addr),
|
||||
reinterpret_cast<const void **>(&host_addr));
|
||||
if (ret == HSA_STATUS_ERROR_INVALID_ARGUMENT) {
|
||||
return NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return host_addr;
|
||||
|
||||
مرجع در شماره جدید
Block a user