Module Name: src Committed By: riastradh Date: Tue Apr 1 15:28:52 UTC 2014
Modified Files: src/sys/external/bsd/drm2/include/linux: atomic.h Log Message: Fix volatile qualifiers in drm2 <linux/atomic.h>. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/drm2/include/linux/atomic.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/include/linux/atomic.h diff -u src/sys/external/bsd/drm2/include/linux/atomic.h:1.2 src/sys/external/bsd/drm2/include/linux/atomic.h:1.3 --- src/sys/external/bsd/drm2/include/linux/atomic.h:1.2 Tue Mar 18 18:20:43 2014 +++ src/sys/external/bsd/drm2/include/linux/atomic.h Tue Apr 1 15:28:52 2014 @@ -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 @@ typedef struct atomic atomic_t; 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