diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-10-21 02:16:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-10-21 02:16:54 +0000 |
commit | 262a5f06556dc390956b4227df05be4feea79841 (patch) | |
tree | f5bfc3277eee981d421b1296010d6ec64802bd41 /sys/dev/pci/drm/amd/amdgpu | |
parent | deb4f2e2006d1af20943a8063d60f77db67d0c1a (diff) |
change drm_vma function arguments to take struct drm_file *
reduces the diff to linux 5.7.y
ok kettenis@
Diffstat (limited to 'sys/dev/pci/drm/amd/amdgpu')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c index 8014d760f69..de0afe174d1 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c @@ -217,6 +217,7 @@ static void amdgpu_evict_flags(struct ttm_buffer_object *bo, static int amdgpu_verify_access(struct ttm_buffer_object *bo, struct file *filp) { struct amdgpu_bo *abo = ttm_to_amdgpu_bo(bo); + struct drm_file *file_priv = (void *)filp; /* * Don't verify access for KFD BOs. They don't have a GEM @@ -227,7 +228,7 @@ static int amdgpu_verify_access(struct ttm_buffer_object *bo, struct file *filp) if (amdgpu_ttm_tt_get_usermm(bo->ttm)) return -EPERM; - return drm_vma_node_verify_access(&abo->tbo.base.vma_node, filp); + return drm_vma_node_verify_access(&abo->tbo.base.vma_node, file_priv); } /** |