diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-29 12:12:29 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-10 17:13:36 +1000 |
commit | 03decbe57ac6c9e632f7cde0f7d0a54bbcaf8464 (patch) | |
tree | 177436526b40cbc2c29c99ea9f6e14de248fd99b /include | |
parent | 9fc5cde7fb6699b0a75e90b7cbfee7c912dd94c2 (diff) | |
download | blackbird-op-linux-03decbe57ac6c9e632f7cde0f7d0a54bbcaf8464.tar.gz blackbird-op-linux-03decbe57ac6c9e632f7cde0f7d0a54bbcaf8464.zip |
drm: move "struct drm_vma_entry" to drm_vm.c
Make all the drm_vma_entry handling local to drm_vm.c and hide it from
global headers. This requires to extract the inlined legacy drm_vma_entry
cleanup into a small helper and also move a weirdly placed drm_vma_info
helper into drm_vm.c.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index cea7911265a3..11c357534581 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -296,12 +296,6 @@ struct drm_magic_entry { struct drm_file *priv; }; -struct drm_vma_entry { - struct list_head head; - struct vm_area_struct *vma; - pid_t pid; -}; - /** * DMA buffer. */ @@ -1449,6 +1443,8 @@ struct drm_local_map *drm_legacy_getsarea(struct drm_device *dev); int drm_legacy_addbufs_agp(struct drm_device *d, struct drm_buf_desc *req); int drm_legacy_addbufs_pci(struct drm_device *d, struct drm_buf_desc *req); +void drm_legacy_vma_flush(struct drm_device *d); + /* sysfs support (drm_sysfs.c) */ struct drm_sysfs_class; extern struct class *drm_sysfs_create(struct module *owner, char *name); |