<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">Am 20.06.2018 18:22 schrieb Chris Wilson <chris@chris-wilson.co.uk>:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:11pt">
<div>Fix i915's CI build after the removal of the dmabuf->kmap interface that<br>
left the mock routines intact.<br>
<br>
In file included from drivers/gpu/drm/i915/i915_gem_dmabuf.c:335:0:<br>
drivers/gpu/drm/i915/selftests/mock_dmabuf.c:104:13: error: ‘mock_dmabuf_kunmap_atomic’ defined but not used [-Werror=unused-function]<br>
 static void mock_dmabuf_kunmap_atomic(struct dma_buf *dma_buf, unsigned long page_num, void *addr)<br>
drivers/gpu/drm/i915/selftests/mock_dmabuf.c:97:14: error: ‘mock_dmabuf_kmap_atomic’ defined but not used [-Werror=unused-function]<br>
 static void *mock_dmabuf_kmap_atomic(struct dma_buf *dma_buf, unsigned long page_num)<br>
<br>
Fixes: f664a5269542 ("dma-buf: remove kmap_atomic interface")<br>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk><br>
</div>
</span></font></div>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Reviewed-by: Christian König <christian.koenig@amd.com></div>
<div dir="auto"><br>
</div>
<div dir="auto">And sorry for the noise,</div>
<div dir="auto">Christian.</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:11pt">
<div>Cc: Christian König <christian.koenig@amd.com><br>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch><br>
Cc: Sumit Semwal <sumit.semwal@linaro.org><br>
---<br>
 drivers/gpu/drm/i915/selftests/mock_dmabuf.c | 12 ------------<br>
 1 file changed, 12 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/i915/selftests/mock_dmabuf.c b/drivers/gpu/drm/i915/selftests/mock_dmabuf.c<br>
index f81fda8ea45e..ca682caf1062 100644<br>
--- a/drivers/gpu/drm/i915/selftests/mock_dmabuf.c<br>
+++ b/drivers/gpu/drm/i915/selftests/mock_dmabuf.c<br>
@@ -94,18 +94,6 @@ static void mock_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr)<br>
         vm_unmap_ram(vaddr, mock->npages);<br>
 }<br>
 <br>
-static void *mock_dmabuf_kmap_atomic(struct dma_buf *dma_buf, unsigned long page_num)<br>
-{<!-- --><br>
-       struct mock_dmabuf *mock = to_mock(dma_buf);<br>
-<br>
-       return kmap_atomic(mock->pages[page_num]);<br>
-}<br>
-<br>
-static void mock_dmabuf_kunmap_atomic(struct dma_buf *dma_buf, unsigned long page_num, void *addr)<br>
-{<!-- --><br>
-       kunmap_atomic(addr);<br>
-}<br>
-<br>
 static void *mock_dmabuf_kmap(struct dma_buf *dma_buf, unsigned long page_num)<br>
 {<!-- --><br>
         struct mock_dmabuf *mock = to_mock(dma_buf);<br>
-- <br>
2.18.0.rc2<br>
<br>
</div>
</span></font></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>