2018-12-27 17:53:01 +08:00
|
|
|
From 7bf00dd884994919b1aa3b641eea77bf06a94281 Mon Sep 17 00:00:00 2001
|
2018-10-11 02:06:46 +08:00
|
|
|
From: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
|
|
|
|
Date: Tue, 31 Jul 2018 14:39:37 -0700
|
2018-12-27 17:53:01 +08:00
|
|
|
Subject: [PATCH 167/214] hyper_dmabuf: Remove void* cast in cpu_access
|
2018-10-11 02:06:46 +08:00
|
|
|
function pointers
|
|
|
|
|
|
|
|
In dma_buf_ops structure init, hyper_dmabuf_ops_begin_cpu_access() and
|
|
|
|
hyper_dmabuf_ops_end_cpu_access() functions are of same type as
|
|
|
|
begin_cpu_access() and end_cpu_access() function declartions. So there
|
|
|
|
is no need for casting them with void*.
|
|
|
|
|
|
|
|
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
|
|
|
|
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
|
|
|
|
---
|
|
|
|
drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_ops.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_ops.c b/drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_ops.c
|
|
|
|
index 915743741897..e2bdab75a7cf 100644
|
|
|
|
--- a/drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_ops.c
|
|
|
|
+++ b/drivers/dma-buf/hyper_dmabuf/hyper_dmabuf_ops.c
|
|
|
|
@@ -372,8 +372,8 @@ static const struct dma_buf_ops hyper_dmabuf_ops = {
|
|
|
|
.map_dma_buf = hyper_dmabuf_ops_map,
|
|
|
|
.unmap_dma_buf = hyper_dmabuf_ops_unmap,
|
|
|
|
.release = hyper_dmabuf_ops_release,
|
|
|
|
- .begin_cpu_access = (void *)hyper_dmabuf_ops_begin_cpu_access,
|
|
|
|
- .end_cpu_access = (void *)hyper_dmabuf_ops_end_cpu_access,
|
|
|
|
+ .begin_cpu_access = hyper_dmabuf_ops_begin_cpu_access,
|
|
|
|
+ .end_cpu_access = hyper_dmabuf_ops_end_cpu_access,
|
|
|
|
.map_atomic = hyper_dmabuf_ops_kmap_atomic,
|
|
|
|
.unmap_atomic = hyper_dmabuf_ops_kunmap_atomic,
|
|
|
|
.map = hyper_dmabuf_ops_kmap,
|
|
|
|
--
|
2018-12-27 17:53:01 +08:00
|
|
|
2.19.1
|
2018-10-11 02:06:46 +08:00
|
|
|
|