From: jsg Date: Mon, 11 Dec 2023 04:56:54 +0000 (+0000) Subject: add dma_fence_is_later_or_same() for 6.1.66 drm X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=89d5f5cfa617b7433943409147a90ac51a519c4f;p=openbsd add dma_fence_is_later_or_same() for 6.1.66 drm --- 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) {