summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/udl/udl_drv.h
diff options
context:
space:
mode:
authorHaixia Shi <hshi@chromium.org>2014-11-25 12:04:02 -0800
committerDave Airlie <airlied@redhat.com>2014-11-26 10:03:00 +1000
commit4bc158e0be4b03b320db9f3b91a84c898ae928a0 (patch)
tree20b69afd73ae291cd077bfac5b19b8521b773a4c /drivers/gpu/drm/udl/udl_drv.h
parent0a3d775fb2c951d1bd3f5f916eee55face0eaada (diff)
downloadlwn-4bc158e0be4b03b320db9f3b91a84c898ae928a0.tar.gz
lwn-4bc158e0be4b03b320db9f3b91a84c898ae928a0.zip
drm/udl: handle page mapping in dmabuf export.
Fixes dmabuf export failure with -E_NOMEM when the page is not mapped. Signed-off-by: Haixia Shi <hshi@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/udl/udl_drv.h')
-rw-r--r--drivers/gpu/drm/udl/udl_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/udl/udl_drv.h b/drivers/gpu/drm/udl/udl_drv.h
index 1b132d779621..80adbac82bde 100644
--- a/drivers/gpu/drm/udl/udl_drv.h
+++ b/drivers/gpu/drm/udl/udl_drv.h
@@ -129,6 +129,8 @@ struct dma_buf *udl_gem_prime_export(struct drm_device *dev,
struct drm_gem_object *udl_gem_prime_import(struct drm_device *dev,
struct dma_buf *dma_buf);
+int udl_gem_get_pages(struct udl_gem_object *obj);
+void udl_gem_put_pages(struct udl_gem_object *obj);
int udl_gem_vmap(struct udl_gem_object *obj);
void udl_gem_vunmap(struct udl_gem_object *obj);
int udl_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma);