]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/parisc/include/asm/atomic.h
[PARISC] fix return type of __atomic64_add_return
[~shefty/rdma-dev.git] / arch / parisc / include / asm / atomic.h
index f81955934aebf4dbf0e97add2e45bb6cdc9042fa..26fd1146dda6aaad366a7d57e5c4fc197c567d73 100644 (file)
@@ -259,10 +259,10 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
 
 #define ATOMIC64_INIT(i) ((atomic64_t) { (i) })
 
-static __inline__ int
+static __inline__ s64
 __atomic64_add_return(s64 i, atomic64_t *v)
 {
-       int ret;
+       s64 ret;
        unsigned long flags;
        _atomic_spin_lock_irqsave(v, flags);