]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: Remove requirement for ops->map() from dma_buf_export
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Aug 2018 18:36:47 +0000 (19:36 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Aug 2018 05:57:46 +0000 (07:57 +0200)
commitde68843ff733d309112f29bbef9d44b89d1653bc
tree4e4670c8bc615afeb7427a264f215b650c695c19
parentba0bb37e762c82fd76844e027c3e77d0167b4db9
dma-buf: Remove requirement for ops->map() from dma_buf_export

Since commit 9ea0dfbf972 ("dma-buf: make map_atomic and map function
pointers optional"), the core provides the no-op functions when map and
map_atomic are not provided, so we no longer need assert that are
supplied by a dma-buf exporter.

Fixes: 6c0d4230bb52 ("dma-buf: make map_atomic and map function pointers optional")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20180807183647.22626-1-chris@chris-wilson.co.uk
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/dma-buf/dma-buf.c