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/include/linux const const const const ...



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

description:
const const const const const

diffstat:

 sys/external/bsd/drm2/include/linux/seqlock.h |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (71 lines):

diff -r e420e78f75b1 -r b8ad8a9c9b70 sys/external/bsd/drm2/include/linux/seqlock.h
--- a/sys/external/bsd/drm2/include/linux/seqlock.h     Sun Dec 19 01:50:00 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/seqlock.h     Sun Dec 19 01:50:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: seqlock.h,v 1.4 2021/12/19 01:25:50 riastradh Exp $    */
+/*     $NetBSD: seqlock.h,v 1.5 2021/12/19 01:50:10 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
 }
 
 static inline unsigned
-__read_seqcount_begin(struct seqcount *seqcount)
+__read_seqcount_begin(const struct seqcount *seqcount)
 {
        unsigned gen;
 
@@ -91,7 +91,7 @@
 }
 
 static inline bool
-__read_seqcount_retry(struct seqcount *seqcount, unsigned gen)
+__read_seqcount_retry(const struct seqcount *seqcount, unsigned gen)
 {
 
        __insn_barrier();
@@ -99,7 +99,7 @@
 }
 
 static inline unsigned
-read_seqcount_begin(struct seqcount *seqcount)
+read_seqcount_begin(const struct seqcount *seqcount)
 {
        unsigned gen;
 
@@ -110,7 +110,7 @@
 }
 
 static inline bool
-read_seqcount_retry(struct seqcount *seqcount, unsigned gen)
+read_seqcount_retry(const struct seqcount *seqcount, unsigned gen)
 {
 
        membar_consumer();
@@ -118,7 +118,7 @@
 }
 
 static inline unsigned
-raw_read_seqcount(struct seqcount *seqcount)
+raw_read_seqcount(const struct seqcount *seqcount)
 {
        unsigned gen;
 
@@ -178,14 +178,14 @@
 } while (0)
 
 static inline unsigned
-read_seqbegin(struct seqlock *seqlock)
+read_seqbegin(const struct seqlock *seqlock)
 {
 
        return read_seqcount_begin(&seqlock->sql_count);
 }
 
 static inline bool
-read_seqretry(struct seqlock *seqlock, unsigned gen)
+read_seqretry(const struct seqlock *seqlock, unsigned gen)
 {
 
        return read_seqcount_retry(&seqlock->sql_count, gen);



Home | Main Index | Thread Index | Old Index