提交 048d5ce6 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[S390] Remove volatile from atomic_t

Follow i386/x86_64 and remove 'volatile' from atomic_t.
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 dc412330
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
*/ */
typedef struct { typedef struct {
volatile int counter; int counter;
} __attribute__ ((aligned (4))) atomic_t; } __attribute__ ((aligned (4))) atomic_t;
#define ATOMIC_INIT(i) { (i) } #define ATOMIC_INIT(i) { (i) }
...@@ -141,7 +141,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u) ...@@ -141,7 +141,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
#ifdef __s390x__ #ifdef __s390x__
typedef struct { typedef struct {
volatile long long counter; long long counter;
} __attribute__ ((aligned (8))) atomic64_t; } __attribute__ ((aligned (8))) atomic64_t;
#define ATOMIC64_INIT(i) { (i) } #define ATOMIC64_INIT(i) { (i) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册