Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+4 -14
-2
drivers/gpu/drm/drm_internal.h
··· 37 37 38 38 /* drm_vm.c */ 39 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 41 /* drm_prime.c */ 44 42 int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data,
+4 -12
drivers/gpu/drm/drm_vm.c
··· 395 395 .close = drm_vm_close, 396 396 }; 397 397 398 - /** 399 - * \c open method for shared virtual memory. 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) 398 + static void drm_vm_open_locked(struct drm_device *dev, 399 + struct vm_area_struct *vma) 408 400 { 409 401 struct drm_vma_entry *vma_entry; 410 402 ··· 421 429 mutex_unlock(&dev->struct_mutex); 422 430 } 423 431 424 - void drm_vm_close_locked(struct drm_device *dev, 425 - struct vm_area_struct *vma) 432 + static void drm_vm_close_locked(struct drm_device *dev, 433 + struct vm_area_struct *vma) 426 434 { 427 435 struct drm_vma_entry *pt, *temp; 428 436