Skip to content

Commit

Permalink
[S390] Remove volatile from atomic_t
Browse files Browse the repository at this point in the history
Follow i386/x86_64 and remove 'volatile' from atomic_t.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Jul 10, 2007
1 parent dc41233 commit 048d5ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-s390/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/

typedef struct {
volatile int counter;
int counter;
} __attribute__ ((aligned (4))) atomic_t;
#define ATOMIC_INIT(i) { (i) }

Expand Down Expand Up @@ -141,7 +141,7 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)

#ifdef __s390x__
typedef struct {
volatile long long counter;
long long counter;
} __attribute__ ((aligned (8))) atomic64_t;
#define ATOMIC64_INIT(i) { (i) }

Expand Down

0 comments on commit 048d5ce

Please sign in to comment.