mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-29 20:30:35 +00:00
[S390] Remove volatile from atomic_t
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>
This commit is contained in:
parent
dc4123303b
commit
048d5ce682
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@
|
|||
*/
|
||||
|
||||
typedef struct {
|
||||
volatile int counter;
|
||||
int counter;
|
||||
} __attribute__ ((aligned (4))) atomic_t;
|
||||
#define ATOMIC_INIT(i) { (i) }
|
||||
|
||||
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Reference in a new issue