mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 13:32:40 -04:00
drm/amdkfd: Fix sparse __rcu annotation warnings
Properly mark kfd_process->ef as __rcu and consistently use the right accessor functions. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202312052245.yFpBSgNH-lkp@intel.com/ Signed-off-by: Felix Kuehling <felix.kuehling@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
2a9de42e8d
commit
c147ddc68e
@@ -2802,7 +2802,7 @@ unlock_out:
|
||||
put_task_struct(usertask);
|
||||
}
|
||||
|
||||
static void replace_eviction_fence(struct dma_fence **ef,
|
||||
static void replace_eviction_fence(struct dma_fence __rcu **ef,
|
||||
struct dma_fence *new_ef)
|
||||
{
|
||||
struct dma_fence *old_ef = rcu_replace_pointer(*ef, new_ef, true
|
||||
@@ -2837,7 +2837,7 @@ static void replace_eviction_fence(struct dma_fence **ef,
|
||||
* 7. Add fence to all PD and PT BOs.
|
||||
* 8. Unreserve all BOs
|
||||
*/
|
||||
int amdgpu_amdkfd_gpuvm_restore_process_bos(void *info, struct dma_fence **ef)
|
||||
int amdgpu_amdkfd_gpuvm_restore_process_bos(void *info, struct dma_fence __rcu **ef)
|
||||
{
|
||||
struct amdkfd_process_info *process_info = info;
|
||||
struct amdgpu_vm *peer_vm;
|
||||
|
||||
Reference in New Issue
Block a user