diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-04-26 13:29:40 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-04-27 04:15:56 -0400 |
commit | f47dbdd75bf3388ce8107c2e7e5a1eebd3700dd5 (patch) | |
tree | 9916d5cbd8cce61cd16d30e667db62c104725691 | |
parent | 40647e45b92b1da599048332ec8fbd40d8d29457 (diff) |
drm: Make drm_vm_open/close_locked private to drm_vm.c
It's only used for legacy mmaping support now.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461691808-12414-8-git-send-email-daniel.vetter@ffwll.ch
-rw-r--r-- | drivers/gpu/drm/drm_internal.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/drm_vm.c | 16 |
2 files changed, 4 insertions, 14 deletions
diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index c81ff4769e7b..902cf6a15212 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h | |||
@@ -37,8 +37,6 @@ int drm_irq_by_busid(struct drm_device *dev, void *data, | |||
37 | 37 | ||
38 | /* drm_vm.c */ | 38 | /* drm_vm.c */ |
39 | int drm_vma_info(struct seq_file *m, void *data); | 39 | int drm_vma_info(struct seq_file *m, void *data); |
40 | void drm_vm_open_locked(struct drm_device *dev, struct vm_area_struct *vma); | ||
41 | void drm_vm_close_locked(struct drm_device *dev, struct vm_area_struct *vma); | ||
42 | 40 | ||
43 | /* drm_prime.c */ | 41 | /* drm_prime.c */ |
44 | int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data, | 42 | int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data, |
diff --git a/drivers/gpu/drm/drm_vm.c b/drivers/gpu/drm/drm_vm.c index f90bd5fe35ba..ac9f4b3ec615 100644 --- a/drivers/gpu/drm/drm_vm.c +++ b/drivers/gpu/drm/drm_vm.c | |||
@@ -395,16 +395,8 @@ static const struct vm_operations_struct drm_vm_sg_ops = { | |||
395 | .close = drm_vm_close, | 395 | .close = drm_vm_close, |
396 | }; | 396 | }; |
397 | 397 | ||
398 | /** | 398 | static void drm_vm_open_locked(struct drm_device *dev, |
399 | * \c open method for shared virtual memory. | 399 | struct vm_area_struct *vma) |
400 | * | ||
401 | * \param vma virtual memory area. | ||
402 | * | ||
403 | * Create a new drm_vma_entry structure as the \p vma private data entry and | ||
404 | * add it to drm_device::vmalist. | ||
405 | */ | ||
406 | void drm_vm_open_locked(struct drm_device *dev, | ||
407 | struct vm_area_struct *vma) | ||
408 | { | 400 | { |
409 | struct drm_vma_entry *vma_entry; | 401 | struct drm_vma_entry *vma_entry; |
410 | 402 | ||
@@ -429,8 +421,8 @@ static void drm_vm_open(struct vm_area_struct *vma) | |||
429 | mutex_unlock(&dev->struct_mutex); | 421 | mutex_unlock(&dev->struct_mutex); |
430 | } | 422 | } |
431 | 423 | ||
432 | void drm_vm_close_locked(struct drm_device *dev, | 424 | static void drm_vm_close_locked(struct drm_device *dev, |
433 | struct vm_area_struct *vma) | 425 | struct vm_area_struct *vma) |
434 | { | 426 | { |
435 | struct drm_vma_entry *pt, *temp; | 427 | struct drm_vma_entry *pt, *temp; |
436 | 428 | ||