Skip to content

Commit

Permalink
drm/tee_shm: Drop dma_buf_k(unmap) support
Browse files Browse the repository at this point in the history
There's no in-tree users anymore.

Acked-by: Greg Kroah-Hartman <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Acked-by: Sumit Semwal <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jens Wiklander <[email protected]>
Cc: [email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
danvet committed Nov 25, 2019
1 parent 19d564a commit 42aa7c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions drivers/misc/fastrpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,6 @@ static void fastrpc_dma_buf_detatch(struct dma_buf *dmabuf,
kfree(a);
}

static void *fastrpc_kmap(struct dma_buf *dmabuf, unsigned long pgnum)
{
struct fastrpc_buf *buf = dmabuf->priv;

return buf->virt ? buf->virt + pgnum * PAGE_SIZE : NULL;
}

static void *fastrpc_vmap(struct dma_buf *dmabuf)
{
struct fastrpc_buf *buf = dmabuf->priv;
Expand All @@ -585,7 +578,6 @@ static const struct dma_buf_ops fastrpc_dma_buf_ops = {
.map_dma_buf = fastrpc_map_dma_buf,
.unmap_dma_buf = fastrpc_unmap_dma_buf,
.mmap = fastrpc_mmap,
.map = fastrpc_kmap,
.vmap = fastrpc_vmap,
.release = fastrpc_release,
};
Expand Down
6 changes: 0 additions & 6 deletions drivers/tee/tee_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ static void tee_shm_op_release(struct dma_buf *dmabuf)
tee_shm_release(shm);
}

static void *tee_shm_op_map(struct dma_buf *dmabuf, unsigned long pgnum)
{
return NULL;
}

static int tee_shm_op_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
{
struct tee_shm *shm = dmabuf->priv;
Expand All @@ -93,7 +88,6 @@ static const struct dma_buf_ops tee_shm_dma_buf_ops = {
.map_dma_buf = tee_shm_op_map_dma_buf,
.unmap_dma_buf = tee_shm_op_unmap_dma_buf,
.release = tee_shm_op_release,
.map = tee_shm_op_map,
.mmap = tee_shm_op_mmap,
};

Expand Down

0 comments on commit 42aa7c6

Please sign in to comment.