dma-buf: add reservation_object_fences helper
authorChristian König <christian.koenig@amd.com>
Tue, 6 Aug 2019 12:19:33 +0000 (14:19 +0200)
committerChristian König <christian.koenig@amd.com>
Sat, 10 Aug 2019 10:49:06 +0000 (12:49 +0200)
commit67c97fb79a7f8621d4514275691d75f5ff158c46
treef28ca7b330a682a54504ea8857f41d468dbd58db
parent0e2f733addbf7702065cc18d38b67a1284d0c2be
dma-buf: add reservation_object_fences helper

Add a new helper to get a consistent set of pointers from the reservation
object. While at it group all access helpers together in the header file.

v2: correctly return shared_count as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/322378/?series=64837&rev=1
drivers/dma-buf/dma-buf.c
drivers/dma-buf/reservation.c
include/linux/reservation.h