drm/ttm: factor out ttm_bo_mmap_vma_setup
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Oct 2019 11:51:58 +0000 (13:51 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Oct 2019 11:59:16 +0000 (13:59 +0200)
commit24e25ea6d760b2492f2ab16a9bbb098fc3379819
treea3b11ef85eb45acc934c056465c5a4e50cb57783
parenteee9a2e0ad7c4c1fe5fa286dddf822116370f0c7
drm/ttm: factor out ttm_bo_mmap_vma_setup

Factor out ttm vma setup to a new function.
Reduces code duplication a bit.

v2: don't change vm_flags (moved to separate patch).
v4: make ttm_bo_mmap_vma_setup static.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20191016115203.20095-7-kraxel@redhat.com
drivers/gpu/drm/ttm/ttm_bo_vm.c