sample/mdev/mbochs: remove mbochs_kmap_atomic_dmabuf
Atomic mapping interface for dmabufs will be removed. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
08ca1b52f6
commit
2203d8a76e
|
@ -803,15 +803,6 @@ static void mbochs_release_dmabuf(struct dma_buf *buf)
|
||||||
mutex_unlock(&mdev_state->ops_lock);
|
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)
|
static void *mbochs_kmap_dmabuf(struct dma_buf *buf, unsigned long page_num)
|
||||||
{
|
{
|
||||||
struct mbochs_dmabuf *dmabuf = buf->priv;
|
struct mbochs_dmabuf *dmabuf = buf->priv;
|
||||||
|
@ -824,7 +815,6 @@ static struct dma_buf_ops mbochs_dmabuf_ops = {
|
||||||
.map_dma_buf = mbochs_map_dmabuf,
|
.map_dma_buf = mbochs_map_dmabuf,
|
||||||
.unmap_dma_buf = mbochs_unmap_dmabuf,
|
.unmap_dma_buf = mbochs_unmap_dmabuf,
|
||||||
.release = mbochs_release_dmabuf,
|
.release = mbochs_release_dmabuf,
|
||||||
.map_atomic = mbochs_kmap_atomic_dmabuf,
|
|
||||||
.map = mbochs_kmap_dmabuf,
|
.map = mbochs_kmap_dmabuf,
|
||||||
.mmap = mbochs_mmap_dmabuf,
|
.mmap = mbochs_mmap_dmabuf,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue