Commit:     1fb8812ba5a4c34b680d4405216310233f3c7573
Parent:     dbbe3cb8cff6b494ac2cba6a94dc7aabe7e5b635
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Thu May 31 01:19:24 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Thu May 31 01:52:51 2007 -0700

    [SPARC32]: Build fix.
    Fix 6197fe4d720ea3e2ee94cdc7ef32d6c0151199de
    arch/sparc/lib/atomic32.c: In function '__cmpxchg_u32':
    arch/sparc/lib/atomic32.c:127: error: 'addr' undeclared (first use in this 
    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 <[EMAIL PROTECTED]>
    Acked-by: William Irwin <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 arch/sparc/lib/atomic32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c
index 617d298..cbddeb3 100644
--- a/arch/sparc/lib/atomic32.c
+++ b/arch/sparc/lib/atomic32.c
@@ -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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to