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
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,