[PATCH] drm/i915/selftests: Remove unused dmabuf->kmap routines, fix the build

Chris Wilson chris at chris-wilson.co.uk
Wed Jun 20 17:01:48 UTC 2018


Quoting Koenig, Christian (2018-06-20 17:28:33)
> 
> 
> Am 20.06.2018 18:22 schrieb Chris Wilson <chris at chris-wilson.co.uk>:
> 
>     Fix i915's CI build after the removal of the dmabuf->kmap interface that
>     left the mock routines intact.
> 
>     In file included from drivers/gpu/drm/i915/i915_gem_dmabuf.c:335:0:
>     drivers/gpu/drm/i915/selftests/mock_dmabuf.c:104:13: error:
>     ‘mock_dmabuf_kunmap_atomic’ defined but not used [-Werror=unused-function]
>      static void mock_dmabuf_kunmap_atomic(struct dma_buf *dma_buf, unsigned
>     long page_num, void *addr)
>     drivers/gpu/drm/i915/selftests/mock_dmabuf.c:97:14: error:
>     ‘mock_dmabuf_kmap_atomic’ defined but not used [-Werror=unused-function]
>      static void *mock_dmabuf_kmap_atomic(struct dma_buf *dma_buf, unsigned
>     long page_num)
> 
>     Fixes: f664a5269542 ("dma-buf: remove kmap_atomic interface")
>     Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> 
> Reviewed-by: Christian König <christian.koenig at amd.com>
> 
> And sorry for the noise,

No worries, pushed to drm-misc-next, and so this never happened.
-Chris


More information about the dri-devel mailing list