]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdkfd: Fix compile error if HMM support not enabled
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 25 Jul 2024 23:10:43 +0000 (19:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 14:40:30 +0000 (10:40 -0400)
commit1cb62da0802c8f08e26443a5409edba99b8a1f6e
tree150eda3a4155d14d77f1e6107b50c0e6b729ed10
parent3e048c8846a658098d935df83050170c8a8fb104
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>
drivers/gpu/drm/amd/amdkfd/kfd_queue.c