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)
: "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;
......@@ -59,7 +59,7 @@ static inline void atomic_add(int i, volatile atomic_t *v)
: "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;
......@@ -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_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;
int result;
......@@ -95,7 +95,7 @@ static inline int atomic_dec_and_test(volatile atomic_t *v)
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;
int result;
......@@ -138,7 +138,7 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
#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;
......@@ -147,7 +147,7 @@ static inline void atomic_add(int i, volatile atomic_t *v)
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;
......@@ -156,7 +156,7 @@ static inline void atomic_sub(int i, volatile atomic_t *v)
local_irq_restore(flags);
}
static inline void atomic_inc(volatile atomic_t *v)
static inline void atomic_inc(atomic_t *v)
{
unsigned long flags;
......@@ -165,7 +165,7 @@ static inline void atomic_inc(volatile atomic_t *v)
local_irq_restore(flags);
}
static inline void atomic_dec(volatile atomic_t *v)
static inline void atomic_dec(atomic_t *v)
{
unsigned long flags;
......@@ -174,7 +174,7 @@ static inline void atomic_dec(volatile atomic_t *v)
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;
int val;
......@@ -187,7 +187,7 @@ static inline int atomic_dec_and_test(volatile atomic_t *v)
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;
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