summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/include
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-10-21 02:16:54 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-10-21 02:16:54 +0000
commit262a5f06556dc390956b4227df05be4feea79841 (patch)
treef5bfc3277eee981d421b1296010d6ec64802bd41 /sys/dev/pci/drm/include
parentdeb4f2e2006d1af20943a8063d60f77db67d0c1a (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/include')
-rw-r--r--sys/dev/pci/drm/include/drm/drm_vma_manager.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/include/drm/drm_vma_manager.h b/sys/dev/pci/drm/include/drm/drm_vma_manager.h
index c0b83478bdc..42a848898f2 100644
--- a/sys/dev/pci/drm/include/drm/drm_vma_manager.h
+++ b/sys/dev/pci/drm/include/drm/drm_vma_manager.h
@@ -45,7 +45,7 @@ struct drm_file;
struct drm_vma_offset_file {
struct rb_node vm_rb;
- struct file *vm_tag;
+ struct drm_file *vm_tag;
unsigned long vm_count;
};
@@ -73,11 +73,11 @@ int drm_vma_offset_add(struct drm_vma_offset_manager *mgr,
void drm_vma_offset_remove(struct drm_vma_offset_manager *mgr,
struct drm_vma_offset_node *node);
-int drm_vma_node_allow(struct drm_vma_offset_node *node, struct file *tag);
+int drm_vma_node_allow(struct drm_vma_offset_node *node, struct drm_file *tag);
void drm_vma_node_revoke(struct drm_vma_offset_node *node,
- struct file *tag);
+ struct drm_file *tag);
bool drm_vma_node_is_allowed(struct drm_vma_offset_node *node,
- struct file *tag);
+ struct drm_file *tag);
/**
* drm_vma_offset_exact_lookup_locked() - Look up node by exact address
@@ -240,7 +240,7 @@ static inline void drm_vma_node_unmap(struct drm_vma_offset_node *node,
* 0 if access is granted, -EACCES otherwise.
*/
static inline int drm_vma_node_verify_access(struct drm_vma_offset_node *node,
- struct file *tag)
+ struct drm_file *tag)
{
return drm_vma_node_is_allowed(node, tag) ? 0 : -EACCES;
}