Skip to content

Commit 548c210

Browse files
John David AnglinJames Bottomley
authored andcommitted
[PARISC] fix return type of __atomic64_add_return
The return type of __atomic64_add_return of should be s64 or long, not int. This fixes the atomic64 test failure that I previously reported. Signed-off-by: John David Anglin <dave.anglin@nrc-cnrc.gc.ca> Cc: stable@kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent d9ba5fe commit 548c210

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/parisc/include/asm/atomic.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
259259

260260
#define ATOMIC64_INIT(i) ((atomic64_t) { (i) })
261261

262-
static __inline__ int
262+
static __inline__ s64
263263
__atomic64_add_return(s64 i, atomic64_t *v)
264264
{
265-
int ret;
265+
s64 ret;
266266
unsigned long flags;
267267
_atomic_spin_lock_irqsave(v, flags);
268268

0 commit comments

Comments
 (0)