summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vgem/vgem_drv.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-23 15:35:32 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-07-12 12:41:36 +0200
commit5ba6c9ff961a79809ec0daf2713e8d39e3f77199 (patch)
tree9c2eb224abb10f2168e627f5243e2c8d4c461007 /drivers/gpu/drm/vgem/vgem_drv.h
parent2ae995887830b335f9bdab3040018071da54bcdb (diff)
downloadlinux-stable-5ba6c9ff961a79809ec0daf2713e8d39e3f77199.tar.gz
linux-stable-5ba6c9ff961a79809ec0daf2713e8d39e3f77199.tar.bz2
linux-stable-5ba6c9ff961a79809ec0daf2713e8d39e3f77199.zip
drm/vgem: Fix mmaping
The vGEM mmap code has bitrotted slightly and now immediately BUGs. Since vGEM was last updated, there are new core GEM facilities to provide more common functions, so let's use those here. v2: drm_gem_free_mmap_offset() is performed from drm_gem_object_release() so we can remove the redundant call. Testcase: igt/vgem_basic/mmap Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96603 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Sean Paul <seanpaul@chromium.org> Cc: Zach Reizner <zachr@google.com> Cc: Matthew Auld <matthew.auld@intel.com> Tested-by: Humberto Israel Perez Rodriguez <humberto.i.perez.rodriguez@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1466692534-28303-1-git-send-email-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/vgem/vgem_drv.h')
-rw-r--r--drivers/gpu/drm/vgem/vgem_drv.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/vgem/vgem_drv.h b/drivers/gpu/drm/vgem/vgem_drv.h
index e9f92f7ee275..988cbaae7588 100644
--- a/drivers/gpu/drm/vgem/vgem_drv.h
+++ b/drivers/gpu/drm/vgem/vgem_drv.h
@@ -35,12 +35,6 @@
#define to_vgem_bo(x) container_of(x, struct drm_vgem_gem_object, base)
struct drm_vgem_gem_object {
struct drm_gem_object base;
- struct page **pages;
- bool use_dma_buf;
};
-/* vgem_drv.c */
-extern void vgem_gem_put_pages(struct drm_vgem_gem_object *obj);
-extern int vgem_gem_get_pages(struct drm_vgem_gem_object *obj);
-
#endif