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 const const const const const re...



details:   https://anonhg.NetBSD.org/src/rev/7a8a568633dc
branches:  trunk
changeset: 1028094:7a8a568633dc
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:50:17 2021 +0000

description:
const const const const const reservations

diffstat:

 sys/external/bsd/drm2/include/linux/reservation.h |  16 +++++++-------
 sys/external/bsd/drm2/linux/linux_reservation.c   |  24 +++++++++++-----------
 2 files changed, 20 insertions(+), 20 deletions(-)

diffs (141 lines):

diff -r b8ad8a9c9b70 -r 7a8a568633dc sys/external/bsd/drm2/include/linux/reservation.h
--- a/sys/external/bsd/drm2/include/linux/reservation.h Sun Dec 19 01:50:10 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/reservation.h Sun Dec 19 01:50:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reservation.h,v 1.16 2021/12/19 01:48:03 riastradh Exp $       */
+/*     $NetBSD: reservation.h,v 1.17 2021/12/19 01:50:17 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -109,28 +109,28 @@
            struct dma_fence *);
 
 struct dma_fence *
-       reservation_object_get_excl_rcu(struct reservation_object *);
-int    reservation_object_get_fences_rcu(struct reservation_object *,
+       reservation_object_get_excl_rcu(const struct reservation_object *);
+int    reservation_object_get_fences_rcu(const struct reservation_object *,
            struct dma_fence **, unsigned *, struct dma_fence ***);
 
 int    reservation_object_copy_fences(struct reservation_object *,
            const struct reservation_object *);
 
-bool   reservation_object_test_signaled_rcu(struct reservation_object *,
+bool   reservation_object_test_signaled_rcu(const struct reservation_object *,
            bool);
-long   reservation_object_wait_timeout_rcu(struct reservation_object *,
+long   reservation_object_wait_timeout_rcu(const struct reservation_object *,
            bool, bool, unsigned long);
 
 /* NetBSD additions */
 void   reservation_poll_init(struct reservation_poll *);
 void   reservation_poll_fini(struct reservation_poll *);
-int    reservation_object_poll(struct reservation_object *, int,
+int    reservation_object_poll(const struct reservation_object *, int,
            struct reservation_poll *);
-int    reservation_object_kqfilter(struct reservation_object *,
+int    reservation_object_kqfilter(const struct reservation_object *,
            struct knote *, struct reservation_poll *);
 
 static inline bool
-reservation_object_has_excl_fence(struct reservation_object *robj)
+reservation_object_has_excl_fence(const struct reservation_object *robj)
 {
        return robj->fence_excl != NULL;
 }
diff -r b8ad8a9c9b70 -r 7a8a568633dc sys/external/bsd/drm2/linux/linux_reservation.c
--- a/sys/external/bsd/drm2/linux/linux_reservation.c   Sun Dec 19 01:50:10 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_reservation.c   Sun Dec 19 01:50:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_reservation.c,v 1.21 2021/12/19 01:48:03 riastradh Exp $ */
+/*     $NetBSD: linux_reservation.c,v 1.22 2021/12/19 01:50:18 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.21 2021/12/19 01:48:03 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.22 2021/12/19 01:50:18 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -353,7 +353,7 @@
  *     caller must be prepared to retry reading if it fails.
  */
 static void
-reservation_object_read_begin(struct reservation_object *robj,
+reservation_object_read_begin(const struct reservation_object *robj,
     struct reservation_object_read_ticket *ticket)
 {
 
@@ -368,7 +368,7 @@
  *     invalidated.
  */
 static bool
-reservation_object_read_valid(struct reservation_object *robj,
+reservation_object_read_valid(const struct reservation_object *robj,
     struct reservation_object_read_ticket *ticket)
 {
 
@@ -542,7 +542,7 @@
  *     Note: Caller need not call this from an RCU read section.
  */
 struct dma_fence *
-reservation_object_get_excl_rcu(struct reservation_object *robj)
+reservation_object_get_excl_rcu(const struct reservation_object *robj)
 {
        struct dma_fence *fence;
 
@@ -557,10 +557,10 @@
  * reservation_object_get_fences_rcu(robj, fencep, nsharedp, sharedp)
  */
 int
-reservation_object_get_fences_rcu(struct reservation_object *robj,
+reservation_object_get_fences_rcu(const struct reservation_object *robj,
     struct dma_fence **fencep, unsigned *nsharedp, struct dma_fence ***sharedp)
 {
-       struct reservation_object_list *list;
+       const struct reservation_object_list *list;
        struct dma_fence *fence;
        struct dma_fence **shared = NULL;
        unsigned shared_alloc, shared_count, i;
@@ -692,7 +692,7 @@
  *     true only if there are no shared fences?  This makes no sense.
  */
 bool
-reservation_object_test_signaled_rcu(struct reservation_object *robj,
+reservation_object_test_signaled_rcu(const struct reservation_object *robj,
     bool shared)
 {
        struct reservation_object_read_ticket ticket;
@@ -786,7 +786,7 @@
  *     sense.
  */
 long
-reservation_object_wait_timeout_rcu(struct reservation_object *robj,
+reservation_object_wait_timeout_rcu(const struct reservation_object *robj,
     bool shared, bool intr, unsigned long timeout)
 {
        struct reservation_object_read_ticket ticket;
@@ -948,7 +948,7 @@
  *     selnotify when they are.
  */
 int
-reservation_object_poll(struct reservation_object *robj, int events,
+reservation_object_poll(const struct reservation_object *robj, int events,
     struct reservation_poll *rpoll)
 {
        struct reservation_object_read_ticket ticket;
@@ -1145,8 +1145,8 @@
  *     dangerous to add never-tested complex code paths to the kernel.
  */
 int
-reservation_object_kqfilter(struct reservation_object *robj, struct knote *kn,
-    struct reservation_poll *rpoll)
+reservation_object_kqfilter(const struct reservation_object *robj,
+    struct knote *kn, struct reservation_poll *rpoll)
 {
 
        return EINVAL;



Home | Main Index | Thread Index | Old Index