Commit b10f997b authored by David S. Miller's avatar David S. Miller

sparc64: Really fix atomic64_t interface types.

Linus noticed that some of the interface arguments
didn't get "int" --> "long" conversion, as needed.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 86fa04b8
...@@ -20,14 +20,14 @@ ...@@ -20,14 +20,14 @@
#define atomic64_set(v, i) (((v)->counter) = i) #define atomic64_set(v, i) (((v)->counter) = i)
extern void atomic_add(int, atomic_t *); extern void atomic_add(int, atomic_t *);
extern void atomic64_add(int, atomic64_t *); extern void atomic64_add(long, atomic64_t *);
extern void atomic_sub(int, atomic_t *); extern void atomic_sub(int, atomic_t *);
extern void atomic64_sub(int, atomic64_t *); extern void atomic64_sub(long, atomic64_t *);
extern int atomic_add_ret(int, atomic_t *); extern int atomic_add_ret(int, atomic_t *);
extern long atomic64_add_ret(int, atomic64_t *); extern long atomic64_add_ret(long, atomic64_t *);
extern int atomic_sub_ret(int, atomic_t *); extern int atomic_sub_ret(int, atomic_t *);
extern long atomic64_sub_ret(int, atomic64_t *); extern long atomic64_sub_ret(long, atomic64_t *);
#define atomic_dec_return(v) atomic_sub_ret(1, v) #define atomic_dec_return(v) atomic_sub_ret(1, v)
#define atomic64_dec_return(v) atomic64_sub_ret(1, v) #define atomic64_dec_return(v) atomic64_sub_ret(1, v)
......
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