Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Aug 2011 16:36:20 +0000 (06:36 -1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Aug 2011 16:36:20 +0000 (06:36 -1000)
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6:
  [PARISC] wire up sendmmsg syscall
  [PARISC] fix return type of __atomic64_add_return
  [PARISC] Fix futex support

1  2 
arch/parisc/include/asm/atomic.h

@@@ -197,15 -197,15 +197,15 @@@ static __inline__ int atomic_read(cons
  #define atomic_xchg(v, new) (xchg(&((v)->counter), new))
  
  /**
 - * atomic_add_unless - add unless the number is a given value
 + * __atomic_add_unless - add unless the number is a given value
   * @v: pointer of type atomic_t
   * @a: the amount to add to v...
   * @u: ...unless v is equal to u.
   *
   * Atomically adds @a to @v, so long as it was not @u.
 - * Returns non-zero if @v was not @u, and zero otherwise.
 + * Returns the old value of @v.
   */
 -static __inline__ int atomic_add_unless(atomic_t *v, int a, int u)
 +static __inline__ int __atomic_add_unless(atomic_t *v, int a, int u)
  {
        int c, old;
        c = atomic_read(v);
                        break;
                c = old;
        }
 -      return c != (u);
 +      return c;
  }
  
 -#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
  
  #define atomic_add(i,v)       ((void)(__atomic_add_return( (i),(v))))
  #define atomic_sub(i,v)       ((void)(__atomic_add_return(-(i),(v))))
  
  #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);
  
@@@ -316,7 -317,7 +316,7 @@@ atomic64_read(const atomic64_t *v
   * @u: ...unless v is equal to u.
   *
   * Atomically adds @a to @v, so long as it was not @u.
 - * Returns non-zero if @v was not @u, and zero otherwise.
 + * Returns the old value of @v.
   */
  static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
  {
  
  #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
  
 -#else /* CONFIG_64BIT */
 -
 -#include <asm-generic/atomic64.h>
 -
  #endif /* !CONFIG_64BIT */
  
 -#include <asm-generic/atomic-long.h>
  
  #endif /* _ASM_PARISC_ATOMIC_H_ */