From 89d5f5cfa617b7433943409147a90ac51a519c4f Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 11 Dec 2023 04:56:54 +0000 Subject: [PATCH] add dma_fence_is_later_or_same() for 6.1.66 drm --- sys/dev/pci/drm/include/linux/dma-fence.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/pci/drm/include/linux/dma-fence.h b/sys/dev/pci/drm/include/linux/dma-fence.h index b6942e4b770..8c06d399a18 100644 --- a/sys/dev/pci/drm/include/linux/dma-fence.h +++ b/sys/dev/pci/drm/include/linux/dma-fence.h @@ -113,6 +113,14 @@ dma_fence_is_later(struct dma_fence *a, struct dma_fence *b) return __dma_fence_is_later(a->seqno, b->seqno, a->ops); } +static inline bool +dma_fence_is_later_or_same(struct dma_fence *a, struct dma_fence *b) +{ + if (a == b) + return true; + return dma_fence_is_later(a, b); +} + static inline void dma_fence_set_error(struct dma_fence *fence, int error) { -- 2.20.1