File dmabuf-hack.diff of Package drm

---
 drivers/gpu/drm/i915/i915_gem_dmabuf.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

--- a/drivers/gpu/drm/i915/i915_gem_dmabuf.c
+++ b/drivers/gpu/drm/i915/i915_gem_dmabuf.c
@@ -212,7 +212,7 @@ static int i915_gem_dmabuf_mmap(struct d
 	return 0;
 }
 
-static int i915_gem_begin_cpu_access(struct dma_buf *dma_buf, enum dma_data_direction direction)
+static int i915_gem_begin_cpu_access(struct dma_buf *dma_buf, size_t start, size_t length, enum dma_data_direction direction)
 {
 	struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
 	struct drm_device *dev = obj->base.dev;
@@ -228,7 +228,7 @@ static int i915_gem_begin_cpu_access(str
 	return ret;
 }
 
-static int i915_gem_end_cpu_access(struct dma_buf *dma_buf, enum dma_data_direction direction)
+static void i915_gem_end_cpu_access(struct dma_buf *dma_buf, size_t start, size_t length, enum dma_data_direction direction)
 {
 	struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
 	struct drm_device *dev = obj->base.dev;
@@ -236,12 +236,10 @@ static int i915_gem_end_cpu_access(struc
 
 	ret = i915_mutex_lock_interruptible(dev);
 	if (ret)
-		return ret;
+		return;
 
 	ret = i915_gem_object_set_to_gtt_domain(obj, false);
 	mutex_unlock(&dev->struct_mutex);
-
-	return ret;
 }
 
 static const struct dma_buf_ops i915_dmabuf_ops =  {