aboutsummaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorGravatar Thomas Zimmermann <tzimmermann@suse.de> 2022-02-09 16:56:33 +0100
committerGravatar Thomas Zimmermann <tzimmermann@suse.de> 2022-02-14 09:42:01 +0100
commitd315bdbfebd517cf5efabf666c8099e027ef666f (patch)
tree1ce230dddddec2c86e2c5b53d891c7206de5e780 /include/drm
parentdt-bindings: display: Add ingenic,jz4780-dw-hdmi DT Schema (diff)
downloadlinux-d315bdbfebd517cf5efabf666c8099e027ef666f.tar.gz
linux-d315bdbfebd517cf5efabf666c8099e027ef666f.tar.bz2
linux-d315bdbfebd517cf5efabf666c8099e027ef666f.zip
drm/gem-shmem: Set vm_ops in static initializer
Initialize default vm_ops in static initialization of the GEM SHMEM funcs, instead of the mmap code. It's simply better style. GEM helpers will later set a VMA's vm_ops from the default automatically. v2: * also update the drivers that build upon GEM SHMEM Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220209155634.3994-2-tzimmermann@suse.de
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_gem_shmem_helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_gem_shmem_helper.h b/include/drm/drm_gem_shmem_helper.h
index 311d66c9cf4b..08e7846e8abc 100644
--- a/include/drm/drm_gem_shmem_helper.h
+++ b/include/drm/drm_gem_shmem_helper.h
@@ -135,6 +135,8 @@ struct sg_table *drm_gem_shmem_get_pages_sgt(struct drm_gem_shmem_object *shmem)
void drm_gem_shmem_print_info(const struct drm_gem_shmem_object *shmem,
struct drm_printer *p, unsigned int indent);
+extern const struct vm_operations_struct drm_gem_shmem_vm_ops;
+
/*
* GEM object functions
*/