diff mbox

fix atomic64 on PA-RISC

Message ID alpine.DEB.2.00.1107270157040.660@artax.karlin.mff.cuni.cz (mailing list archive)
State Accepted
Headers show

Commit Message

Mikulas Patocka July 26, 2011, 11:57 p.m. UTC
Fix atomic64 on PA-RISC

Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>

---
 arch/parisc/include/asm/atomic.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Matt Turner July 27, 2011, 12:27 a.m. UTC | #1
On Tue, Jul 26, 2011 at 7:57 PM, Mikulas Patocka
<mikulas@artax.karlin.mff.cuni.cz> wrote:
> Fix atomic64 on PA-RISC
>
> Signed-off-by: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
>
> ---
>  arch/parisc/include/asm/atomic.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: linux-3.0-devel/arch/parisc/include/asm/atomic.h
> ===================================================================
> --- linux-3.0-devel.orig/arch/parisc/include/asm/atomic.h       2011-07-27 01:27:03.000000000 +0200
> +++ linux-3.0-devel/arch/parisc/include/asm/atomic.h    2011-07-27 01:30:44.000000000 +0200
> @@ -259,10 +259,10 @@ static __inline__ int atomic_add_unless(
>
>  #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);

An identical patch was sent on June 11, titled '[PATCH] parisc, fix
return type of __atomic64_add_return'. If it's not in James tree (or
upstream) by now, I'm not sure why.

Matt
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: linux-3.0-devel/arch/parisc/include/asm/atomic.h
===================================================================
--- linux-3.0-devel.orig/arch/parisc/include/asm/atomic.h	2011-07-27 01:27:03.000000000 +0200
+++ linux-3.0-devel/arch/parisc/include/asm/atomic.h	2011-07-27 01:30:44.000000000 +0200
@@ -259,10 +259,10 @@  static __inline__ int atomic_add_unless(
 
 #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);