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>
#define ATOMIC64_INIT(i) ((atomic64_t) { (i) })
#define ATOMIC64_INIT(i) ((atomic64_t) { (i) })
__atomic64_add_return(s64 i, atomic64_t *v)
{
__atomic64_add_return(s64 i, atomic64_t *v)
{
unsigned long flags;
_atomic_spin_lock_irqsave(v, flags);
unsigned long flags;
_atomic_spin_lock_irqsave(v, flags);