diff options
author | Philip Yang <Philip.Yang@amd.com> | 2024-07-25 19:10:43 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-08-06 10:40:30 -0400 |
commit | 1cb62da0802c8f08e26443a5409edba99b8a1f6e (patch) | |
tree | 150eda3a4155d14d77f1e6107b50c0e6b729ed10 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 3e048c8846a658098d935df83050170c8a8fb104 (diff) | |
download | linux-1cb62da0802c8f08e26443a5409edba99b8a1f6e.tar.gz linux-1cb62da0802c8f08e26443a5409edba99b8a1f6e.tar.bz2 linux-1cb62da0802c8f08e26443a5409edba99b8a1f6e.zip |
drm/amdkfd: Fix compile error if HMM support not enabled
Fixes the below if kernel config not enable HMM support
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_queue.c:107:26: error:
implicit declaration of function 'svm_range_from_addr'
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_queue.c:107:24: error:
assignment to 'struct svm_range *' from 'int' makes pointer from integer
without a cast [-Wint-conversion]
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_queue.c:111:28: error:
invalid use of undefined type 'struct svm_range'
Fixes: b049504e211e ("drm/amdkfd: Validate user queue svm memory residency")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407252127.zvnxaKRA-lkp@intel.com/
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions