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 Fix volatile qualifiers ...



details:   https://anonhg.NetBSD.org/src/rev/86aada9b7ae3
branches:  trunk
changeset: 328362:86aada9b7ae3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue Apr 01 15:28:52 2014 +0000

description:
Fix volatile qualifiers in drm2 <linux/atomic.h>.

diffstat:

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

diffs (29 lines):

diff -r b83df334381f -r 86aada9b7ae3 sys/external/bsd/drm2/include/linux/atomic.h
--- a/sys/external/bsd/drm2/include/linux/atomic.h      Tue Apr 01 15:19:37 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/atomic.h      Tue Apr 01 15:28:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $     */
+/*     $NetBSD: atomic.h,v 1.3 2014/04/01 15:28:52 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,8 +38,8 @@
 
 struct atomic {
        union {
-               int au_int;
-               unsigned int au_uint;
+               volatile int au_int;
+               volatile unsigned int au_uint;
        } a_u;
 };
 
@@ -50,7 +50,7 @@
 static inline int
 atomic_read(atomic_t *atomic)
 {
-       return *(volatile int *)&atomic->a_u.au_int;
+       return atomic->a_u.au_int;
 }
 
 static inline void



Home | Main Index | Thread Index | Old Index