Skip to content

Commit 065e8c8

Browse files
committed
drm/vgem: Remove unecessary dma_fence_ops
dma_fence_default_wait is the default now, same for the trivial enable_signaling implementation. Also remove the ->signaled callback, vgem can't peek ahead with a fastpath, returning false is the default implementation. v2: Protect the meaningful space! (Chris) Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Kees Cook <keescook@chromium.org> Cc: Cihangir Akturk <cakturk@gmail.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Sean Paul <seanpaul@chromium.org> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20180809124544.9250-1-daniel.vetter@ffwll.ch
1 parent 4092542 commit 065e8c8

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎drivers/gpu/drm/vgem/vgem_fence.c‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ static const char *vgem_fence_get_timeline_name(struct dma_fence *fence)
4343
return "unbound";
4444
}
4545

46-
static bool vgem_fence_signaled(struct dma_fence *fence)
47-
{
48-
return false;
49-
}
50-
51-
static bool vgem_fence_enable_signaling(struct dma_fence *fence)
52-
{
53-
return true;
54-
}
55-
5646
static void vgem_fence_release(struct dma_fence *base)
5747
{
5848
struct vgem_fence *fence = container_of(base, typeof(*fence), base);
@@ -76,9 +66,6 @@ static void vgem_fence_timeline_value_str(struct dma_fence *fence, char *str,
7666
static const struct dma_fence_ops vgem_fence_ops = {
7767
.get_driver_name = vgem_fence_get_driver_name,
7868
.get_timeline_name = vgem_fence_get_timeline_name,
79-
.enable_signaling = vgem_fence_enable_signaling,
80-
.signaled = vgem_fence_signaled,
81-
.wait = dma_fence_default_wait,
8269
.release = vgem_fence_release,
8370

8471
.fence_value_str = vgem_fence_value_str,

0 commit comments

Comments
 (0)