Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/linux Allow const volatile fence point...



details:   https://anonhg.NetBSD.org/src/rev/07f4172049d6
branches:  trunk
changeset: 1028079:07f4172049d6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:48:22 2021 +0000

description:
Allow const volatile fence pointer pointers in dma_fence_get_rcu_safe.

diffstat:

 sys/external/bsd/drm2/include/linux/dma-fence.h |  4 ++--
 sys/external/bsd/drm2/linux/linux_dma_fence.c   |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 53b67c84cbc4 -r 07f4172049d6 sys/external/bsd/drm2/include/linux/dma-fence.h
--- a/sys/external/bsd/drm2/include/linux/dma-fence.h   Sun Dec 19 01:48:12 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/dma-fence.h   Sun Dec 19 01:48:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dma-fence.h,v 1.6 2021/12/19 01:40:55 riastradh Exp $  */
+/*     $NetBSD: dma-fence.h,v 1.7 2021/12/19 01:48:22 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@
 struct dma_fence *
        dma_fence_get_rcu(struct dma_fence *);
 struct dma_fence *
-       dma_fence_get_rcu_safe(struct dma_fence **);
+       dma_fence_get_rcu_safe(struct dma_fence *volatile const *);
 void   dma_fence_put(struct dma_fence *);
 
 int    dma_fence_add_callback(struct dma_fence *, struct dma_fence_cb *,
diff -r 53b67c84cbc4 -r 07f4172049d6 sys/external/bsd/drm2/linux/linux_dma_fence.c
--- a/sys/external/bsd/drm2/linux/linux_dma_fence.c     Sun Dec 19 01:48:12 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_fence.c     Sun Dec 19 01:48:22 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_dma_fence.c,v 1.6 2021/12/19 01:40:48 riastradh Exp $    */
+/*     $NetBSD: linux_dma_fence.c,v 1.7 2021/12/19 01:48:22 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence.c,v 1.6 2021/12/19 01:40:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_fence.c,v 1.7 2021/12/19 01:48:22 riastradh Exp $");
 
 #include <sys/atomic.h>
 #include <sys/condvar.h>
@@ -211,7 +211,7 @@
  *     success, or NULL on failure.
  */
 struct dma_fence *
-dma_fence_get_rcu_safe(struct dma_fence **fencep)
+dma_fence_get_rcu_safe(struct dma_fence *volatile const *fencep)
 {
        struct dma_fence *fence, *fence0;
 



Home | Main Index | Thread Index | Old Index