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 Allow atomic_read of const.



details:   https://anonhg.NetBSD.org/src/rev/47086171e67c
branches:  trunk
changeset: 1028050:47086171e67c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:44:19 2021 +0000

description:
Allow atomic_read of const.

diffstat:

 sys/external/bsd/drm2/include/linux/atomic.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bd9e35f8f189 -r 47086171e67c sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Sun Dec 19 01:44:10 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Sun Dec 19 01:44:19 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.26 2021/12/19 01:39:27 riastradh Exp $    */
+/*     $NetBSD: atomic.h,v 1.27 2021/12/19 01:44:19 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 typedef struct atomic atomic_t;
 
 static inline int
-atomic_read(atomic_t *atomic)
+atomic_read(const atomic_t *atomic)
 {
        /* no membar */
        return atomic->a_u.au_int;



Home | Main Index | Thread Index | Old Index