Add a new callback where drivers can handle mmap setup without having to override gem_driver->fops->mmap. Switch shmem helper over as demo. cheers, Gerd Gerd Hoffmann (3): drm: add mmap() to drm_gem_object_funcs drm: switch shmem helper to drm_gem_object_funcs->mmap drm: drop DEFINE_DRM_GEM_SHMEM_FOPS include/drm/drm_gem.h | 9 ++++++++ include/drm/drm_gem_shmem_helper.h | 28 +------------------------ drivers/gpu/drm/cirrus/cirrus.c | 2 +- drivers/gpu/drm/drm_gem.c | 4 ++++ drivers/gpu/drm/drm_gem_shmem_helper.c | 18 +++++++--------- drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +- drivers/gpu/drm/panfrost/panfrost_gem.c | 1 + drivers/gpu/drm/v3d/v3d_bo.c | 1 + drivers/gpu/drm/v3d/v3d_drv.c | 2 +- 9 files changed, 26 insertions(+), 41 deletions(-) -- 2.18.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel