diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-23 09:46:49 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-23 21:43:07 -0400 |
commit | bfbf3c851ce53b914fe98d60ea3fe3fc1ab75b96 (patch) | |
tree | 789fa903b1dfd94ffb95a5546830cef74025b622 /drivers/gpu/drm/drm_vm.c | |
parent | 197633b924517082327b66db6caf34bae720ea4e (diff) |
drm: move drm_mmap to <drm/drm_legacy.h>
Now that we've removed the copypasted users in gem/ttm we can
relegate the legacy buffer mapping support to where it belongs.
Also give it the proper drm_legacy_ prefix.
While at it statify drm_mmap_locked, somehow I've missed that in my
previous header rework.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_vm.c')
-rw-r--r-- | drivers/gpu/drm/drm_vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index b2b231cda139..28739d401596 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c | |||
@@ -537,7 +537,7 @@ static resource_size_t drm_core_get_reg_ofs(struct drm_device *dev) | |||
537 | * according to the mapping type and remaps the pages. Finally sets the file | 537 | * according to the mapping type and remaps the pages. Finally sets the file |
538 | * pointer and calls vm_open(). | 538 | * pointer and calls vm_open(). |
539 | */ | 539 | */ |
540 | int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma) | 540 | static int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma) |
541 | { | 541 | { |
542 | struct drm_file *priv = filp->private_data; | 542 | struct drm_file *priv = filp->private_data; |
543 | struct drm_device *dev = priv->minor->dev; | 543 | struct drm_device *dev = priv->minor->dev; |
@@ -651,7 +651,7 @@ int drm_mmap_locked(struct file *filp, struct vm_area_struct *vma) | |||
651 | return 0; | 651 | return 0; |
652 | } | 652 | } |
653 | 653 | ||
654 | int drm_mmap(struct file *filp, struct vm_area_struct *vma) | 654 | int drm_legacy_mmap(struct file *filp, struct vm_area_struct *vma) |
655 | { | 655 | { |
656 | struct drm_file *priv = filp->private_data; | 656 | struct drm_file *priv = filp->private_data; |
657 | struct drm_device *dev = priv->minor->dev; | 657 | struct drm_device *dev = priv->minor->dev; |
@@ -666,7 +666,7 @@ int drm_mmap(struct file *filp, struct vm_area_struct *vma) | |||
666 | 666 | ||
667 | return ret; | 667 | return ret; |
668 | } | 668 | } |
669 | EXPORT_SYMBOL(drm_mmap); | 669 | EXPORT_SYMBOL(drm_legacy_mmap); |
670 | 670 | ||
671 | void drm_legacy_vma_flush(struct drm_device *dev) | 671 | void drm_legacy_vma_flush(struct drm_device *dev) |
672 | { | 672 | { |