Re: [PATCH] amdkfd: properly free gang_ctx_bo when failed to init user queue

2025-02-05 Thread Felix Kuehling
On 2025-02-05 3:08, Zhu Lingshan wrote: > The destructor of a gtt bo is declared as > void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj); > Which takes void** as the second parameter. > > GCC allows passing void* to the function because void* can be implicitly > casted

[PATCH] amdkfd: properly free gang_ctx_bo when failed to init user queue

2025-02-05 Thread Zhu Lingshan
The destructor of a gtt bo is declared as void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void **mem_obj); Which takes void** as the second parameter. GCC allows passing void* to the function because void* can be implicitly casted to any other types, so it can pass compiling. However,