Commit a70018bc authored by Russell King's avatar Russell King

[ARM] Remove extraneous "volatile" from atomic_t pointers.

parent 3dae285a
...@@ -44,7 +44,7 @@ static inline void atomic_set(atomic_t *v, int i) ...@@ -44,7 +44,7 @@ static inline void atomic_set(atomic_t *v, int i)
: "cc"); : "cc");
} }
static inline void atomic_add(int i, volatile atomic_t *v) static inline void atomic_add(int i, atomic_t *v)
{ {
unsigned long tmp, tmp2; unsigned long tmp, tmp2;
...@@ -59,7 +59,7 @@ static inline void atomic_add(int i, volatile atomic_t *v) ...@@ -59,7 +59,7 @@ static inline void atomic_add(int i, volatile atomic_t *v)
: "cc"); : "cc");
} }
static inline void atomic_sub(int i, volatile atomic_t *v) static inline void atomic_sub(int i, atomic_t *v)
{ {
unsigned long tmp, tmp2; unsigned long tmp, tmp2;
...@@ -77,7 +77,7 @@ static inline void atomic_sub(int i, volatile atomic_t *v) ...@@ -77,7 +77,7 @@ static inline void atomic_sub(int i, volatile atomic_t *v)
#define atomic_inc(v) atomic_add(1, v) #define atomic_inc(v) atomic_add(1, v)
#define atomic_dec(v) atomic_sub(1, v) #define atomic_dec(v) atomic_sub(1, v)
static inline int atomic_dec_and_test(volatile atomic_t *v) static inline int atomic_dec_and_test(atomic_t *v)
{ {
unsigned long tmp; unsigned long tmp;
int result; int result;
...@@ -95,7 +95,7 @@ static inline int atomic_dec_and_test(volatile atomic_t *v) ...@@ -95,7 +95,7 @@ static inline int atomic_dec_and_test(volatile atomic_t *v)
return result == 0; return result == 0;
} }
static inline int atomic_add_negative(int i, volatile atomic_t *v) static inline int atomic_add_negative(int i, atomic_t *v)
{ {
unsigned long tmp; unsigned long tmp;
int result; int result;
...@@ -138,7 +138,7 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr) ...@@ -138,7 +138,7 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
#define atomic_set(v,i) (((v)->counter) = (i)) #define atomic_set(v,i) (((v)->counter) = (i))
static inline void atomic_add(int i, volatile atomic_t *v) static inline void atomic_add(int i, atomic_t *v)
{ {
unsigned long flags; unsigned long flags;
...@@ -147,7 +147,7 @@ static inline void atomic_add(int i, volatile atomic_t *v) ...@@ -147,7 +147,7 @@ static inline void atomic_add(int i, volatile atomic_t *v)
local_irq_restore(flags); local_irq_restore(flags);
} }
static inline void atomic_sub(int i, volatile atomic_t *v) static inline void atomic_sub(int i, atomic_t *v)
{ {
unsigned long flags; unsigned long flags;
...@@ -156,7 +156,7 @@ static inline void atomic_sub(int i, volatile atomic_t *v) ...@@ -156,7 +156,7 @@ static inline void atomic_sub(int i, volatile atomic_t *v)
local_irq_restore(flags); local_irq_restore(flags);
} }
static inline void atomic_inc(volatile atomic_t *v) static inline void atomic_inc(atomic_t *v)
{ {
unsigned long flags; unsigned long flags;
...@@ -165,7 +165,7 @@ static inline void atomic_inc(volatile atomic_t *v) ...@@ -165,7 +165,7 @@ static inline void atomic_inc(volatile atomic_t *v)
local_irq_restore(flags); local_irq_restore(flags);
} }
static inline void atomic_dec(volatile atomic_t *v) static inline void atomic_dec(atomic_t *v)
{ {
unsigned long flags; unsigned long flags;
...@@ -174,7 +174,7 @@ static inline void atomic_dec(volatile atomic_t *v) ...@@ -174,7 +174,7 @@ static inline void atomic_dec(volatile atomic_t *v)
local_irq_restore(flags); local_irq_restore(flags);
} }
static inline int atomic_dec_and_test(volatile atomic_t *v) static inline int atomic_dec_and_test(atomic_t *v)
{ {
unsigned long flags; unsigned long flags;
int val; int val;
...@@ -187,7 +187,7 @@ static inline int atomic_dec_and_test(volatile atomic_t *v) ...@@ -187,7 +187,7 @@ static inline int atomic_dec_and_test(volatile atomic_t *v)
return val == 0; return val == 0;
} }
static inline int atomic_add_negative(int i, volatile atomic_t *v) static inline int atomic_add_negative(int i, atomic_t *v)
{ {
unsigned long flags; unsigned long flags;
int val; int val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment