<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div dir="auto">Acked-by: Christian König <christian.koenig@amd.com></div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">Am 25.06.2018 08:45 schrieb Gerd Hoffmann <kraxel@redhat.com>:<br type="attribution">
</div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Atomic mapping interface for dmabufs will be removed.<br>
<br>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com><br>
---<br>
 samples/vfio-mdev/mbochs.c | 10 ----------<br>
 1 file changed, 10 deletions(-)<br>
<br>
diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c<br>
index 2960e26c6e..aa25cda21d 100644<br>
--- a/samples/vfio-mdev/mbochs.c<br>
+++ b/samples/vfio-mdev/mbochs.c<br>
@@ -803,15 +803,6 @@ static void mbochs_release_dmabuf(struct dma_buf *buf)<br>
         mutex_unlock(&mdev_state->ops_lock);<br>
 }<br>
 <br>
-static void *mbochs_kmap_atomic_dmabuf(struct dma_buf *buf,<br>
-                                      unsigned long page_num)<br>
-{<br>
-       struct mbochs_dmabuf *dmabuf = buf->priv;<br>
-       struct page *page = dmabuf->pages[page_num];<br>
-<br>
-       return kmap_atomic(page);<br>
-}<br>
-<br>
 static void *mbochs_kmap_dmabuf(struct dma_buf *buf, unsigned long page_num)<br>
 {<br>
         struct mbochs_dmabuf *dmabuf = buf->priv;<br>
@@ -824,7 +815,6 @@ static struct dma_buf_ops mbochs_dmabuf_ops = {<br>
         .map_dma_buf      = mbochs_map_dmabuf,<br>
         .unmap_dma_buf    = mbochs_unmap_dmabuf,<br>
         .release          = mbochs_release_dmabuf,<br>
-       .map_atomic       = mbochs_kmap_atomic_dmabuf,<br>
         .map              = mbochs_kmap_dmabuf,<br>
         .mmap             = mbochs_mmap_dmabuf,<br>
 };<br>
-- <br>
2.9.3<br>
<br>
</div>
</span></font>
</body>
</html>