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
This commit is contained in:
parent
40647e45b9
commit
f47dbdd75b
|
@ -37,8 +37,6 @@ int drm_irq_by_busid(struct drm_device *dev, void *data,
|
||||||
|
|
||||||
/* drm_vm.c */
|
/* drm_vm.c */
|
||||||
int drm_vma_info(struct seq_file *m, void *data);
|
int drm_vma_info(struct seq_file *m, void *data);
|
||||||
void drm_vm_open_locked(struct drm_device *dev, struct vm_area_struct *vma);
|
|
||||||
void drm_vm_close_locked(struct drm_device *dev, struct vm_area_struct *vma);
|
|
||||||
|
|
||||||
/* drm_prime.c */
|
/* drm_prime.c */
|
||||||
int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data,
|
int drm_prime_handle_to_fd_ioctl(struct drm_device *dev, void *data,
|
||||||
|
|
|
@ -395,16 +395,8 @@ static const struct vm_operations_struct drm_vm_sg_ops = {
|
||||||
.close = drm_vm_close,
|
.close = drm_vm_close,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
static void drm_vm_open_locked(struct drm_device *dev,
|
||||||
* \c open method for shared virtual memory.
|
struct vm_area_struct *vma)
|
||||||
*
|
|
||||||
* \param vma virtual memory area.
|
|
||||||
*
|
|
||||||
* Create a new drm_vma_entry structure as the \p vma private data entry and
|
|
||||||
* add it to drm_device::vmalist.
|
|
||||||
*/
|
|
||||||
void drm_vm_open_locked(struct drm_device *dev,
|
|
||||||
struct vm_area_struct *vma)
|
|
||||||
{
|
{
|
||||||
struct drm_vma_entry *vma_entry;
|
struct drm_vma_entry *vma_entry;
|
||||||
|
|
||||||
|
@ -429,8 +421,8 @@ static void drm_vm_open(struct vm_area_struct *vma)
|
||||||
mutex_unlock(&dev->struct_mutex);
|
mutex_unlock(&dev->struct_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
void drm_vm_close_locked(struct drm_device *dev,
|
static void drm_vm_close_locked(struct drm_device *dev,
|
||||||
struct vm_area_struct *vma)
|
struct vm_area_struct *vma)
|
||||||
{
|
{
|
||||||
struct drm_vma_entry *pt, *temp;
|
struct drm_vma_entry *pt, *temp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue