Skip to content

Commit f05d671

Browse files
author
Peter Zijlstra
committed
Merge branch 'locking/header'
2 parents c84d530 + 459e395 commit f05d671

File tree

22 files changed

+3
-42
lines changed

22 files changed

+3
-42
lines changed

arch/alpha/include/asm/atomic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#define __atomic_acquire_fence()
2525
#define __atomic_post_full_fence()
2626

27-
#define ATOMIC_INIT(i) { (i) }
2827
#define ATOMIC64_INIT(i) { (i) }
2928

3029
#define atomic_read(v) READ_ONCE((v)->counter)

arch/arc/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <asm/barrier.h>
1515
#include <asm/smp.h>
1616

17-
#define ATOMIC_INIT(i) { (i) }
18-
1917
#ifndef CONFIG_ARC_PLAT_EZNPS
2018

2119
#define atomic_read(v) READ_ONCE((v)->counter)

arch/arm/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include <asm/barrier.h>
1616
#include <asm/cmpxchg.h>
1717

18-
#define ATOMIC_INIT(i) { (i) }
19-
2018
#ifdef __KERNEL__
2119

2220
/*

arch/arm64/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ static inline long arch_atomic64_dec_if_positive(atomic64_t *v)
9999
return __lse_ll_sc_body(atomic64_dec_if_positive, v);
100100
}
101101

102-
#define ATOMIC_INIT(i) { (i) }
103-
104102
#define arch_atomic_read(v) __READ_ONCE((v)->counter)
105103
#define arch_atomic_set(v, i) __WRITE_ONCE(((v)->counter), (i))
106104

arch/h8300/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
* resource counting etc..
1313
*/
1414

15-
#define ATOMIC_INIT(i) { (i) }
16-
1715
#define atomic_read(v) READ_ONCE((v)->counter)
1816
#define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
1917

arch/hexagon/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include <asm/cmpxchg.h>
1313
#include <asm/barrier.h>
1414

15-
#define ATOMIC_INIT(i) { (i) }
16-
1715
/* Normal writes in our arch don't clear lock reservations */
1816

1917
static inline void atomic_set(atomic_t *v, int new)

arch/ia64/include/asm/atomic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <asm/barrier.h>
2020

2121

22-
#define ATOMIC_INIT(i) { (i) }
2322
#define ATOMIC64_INIT(i) { (i) }
2423

2524
#define atomic_read(v) READ_ONCE((v)->counter)

arch/m68k/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
* We do not have SMP m68k systems, so we don't have to deal with that.
1717
*/
1818

19-
#define ATOMIC_INIT(i) { (i) }
20-
2119
#define atomic_read(v) READ_ONCE((v)->counter)
2220
#define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i))
2321

arch/mips/include/asm/atomic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ static __always_inline type pfx##_xchg(pfx##_t *v, type n) \
4545
return xchg(&v->counter, n); \
4646
}
4747

48-
#define ATOMIC_INIT(i) { (i) }
4948
ATOMIC_OPS(atomic, int)
5049

5150
#ifdef CONFIG_64BIT

arch/parisc/include/asm/atomic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ ATOMIC_OPS(xor, ^=)
136136
#undef ATOMIC_OP_RETURN
137137
#undef ATOMIC_OP
138138

139-
#define ATOMIC_INIT(i) { (i) }
140-
141139
#ifdef CONFIG_64BIT
142140

143141
#define ATOMIC64_INIT(i) { (i) }

0 commit comments

Comments
 (0)