Skip to content

Commit

Permalink
sample/mdev/mbochs: remove mbochs_kmap_atomic_dmabuf
Browse files Browse the repository at this point in the history
Atomic mapping interface for dmabufs will be removed.

Signed-off-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
  • Loading branch information
kraxel authored and awilliam committed Jun 26, 2018
1 parent 08ca1b5 commit 2203d8a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions samples/vfio-mdev/mbochs.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,15 +803,6 @@ static void mbochs_release_dmabuf(struct dma_buf *buf)
mutex_unlock(&mdev_state->ops_lock);
}

static void *mbochs_kmap_atomic_dmabuf(struct dma_buf *buf,
unsigned long page_num)
{
struct mbochs_dmabuf *dmabuf = buf->priv;
struct page *page = dmabuf->pages[page_num];

return kmap_atomic(page);
}

static void *mbochs_kmap_dmabuf(struct dma_buf *buf, unsigned long page_num)
{
struct mbochs_dmabuf *dmabuf = buf->priv;
Expand All @@ -824,7 +815,6 @@ static struct dma_buf_ops mbochs_dmabuf_ops = {
.map_dma_buf = mbochs_map_dmabuf,
.unmap_dma_buf = mbochs_unmap_dmabuf,
.release = mbochs_release_dmabuf,
.map_atomic = mbochs_kmap_atomic_dmabuf,
.map = mbochs_kmap_dmabuf,
.mmap = mbochs_mmap_dmabuf,
};
Expand Down

0 comments on commit 2203d8a

Please sign in to comment.