]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dma-buf/dma-fence: remove unnecessary callbacks
authorChristian König <christian.koenig@amd.com>
Wed, 18 Sep 2024 06:16:57 +0000 (08:16 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 6 Mar 2025 14:20:53 +0000 (15:20 +0100)
commit2ce07fea3cc8b866f7955a7ce1d62b0cc1f74819
treefdede4b09554881681a598cfc6498924335af868
parent2b2d7ca7ce25fbec8389e7d85e57742caa47c97d
dma-buf/dma-fence: remove unnecessary callbacks

The fence_value_str and timeline_value_str callbacks were just an
unnecessary abstraction in the SW sync implementation.

The only caller of those callbacks already knew that the fence in
questions is a timeline_fence. So print the values directly instead
of using a redirection.

Additional to that remove the implementations from virtgpu and vgem.
As far as I can see those were never used in the first place.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250211163109.12200-3-christian.koenig@amd.com
drivers/dma-buf/sw_sync.c
drivers/dma-buf/sync_debug.c
drivers/gpu/drm/vgem/vgem_fence.c
drivers/gpu/drm/virtio/virtgpu_fence.c
include/linux/dma-fence.h