]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SPARC32]: Build fix.
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 31 May 2007 08:19:24 +0000 (01:19 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 31 May 2007 08:52:51 +0000 (01:52 -0700)
Fix 6197fe4d720ea3e2ee94cdc7ef32d6c0151199de

arch/sparc/lib/atomic32.c: In function '__cmpxchg_u32':
arch/sparc/lib/atomic32.c:127: error: 'addr' undeclared (first use in this function)
arch/sparc/lib/atomic32.c:127: error: (Each undeclared identifier is reported only once
arch/sparc/lib/atomic32.c:127: error: for each function it appears in.)

I assume this is what was intended..

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/lib/atomic32.c

index 617d29832e192fc1a0e7258c374886bd592d225f..cbddeb38ffdab2bf5f25562190dd833bf2f9ded4 100644 (file)
@@ -124,10 +124,10 @@ unsigned long __cmpxchg_u32(volatile u32 *ptr, u32 old, u32 new)
        unsigned long flags;
        u32 prev;
 
-       spin_lock_irqsave(ATOMIC_HASH(addr), flags);
+       spin_lock_irqsave(ATOMIC_HASH(ptr), flags);
        if ((prev = *ptr) == old)
                *ptr = new;
-       spin_unlock_irqrestore(ATOMIC_HASH(addr), flags);
+       spin_unlock_irqrestore(ATOMIC_HASH(ptr), flags);
 
        return (unsigned long)prev;
 }