drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 16 Oct 2019 11:51:54 +0000 (13:51 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Oct 2019 11:59:16 +0000 (13:59 +0200)
commit0be895893607fb3447478d6e33dfb60644195a09
tree9986d1b70a2f9049c286d6ce98ffb50264857574
parentc40069cb7bd64903e0c0a3845ea8d3298ca57ea3
drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap

Switch gem shmem helper to the new mmap() workflow,
from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap.

v2: Fix vm_flags and vm_page_prot handling.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20191016115203.20095-3-kraxel@redhat.com
drivers/gpu/drm/drm_gem_shmem_helper.c
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/v3d/v3d_bo.c
drivers/gpu/drm/virtio/virtgpu_object.c
include/drm/drm_gem_shmem_helper.h