From: Alexander Viro Date: Thu, 10 Feb 2005 10:08:27 +0000 (-0800) Subject: [SPARC32]: Fix UP build with spinlock debugging enabled. X-Git-Tag: v2.6.11-rc4~14^2~13 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=487f1f5e2456a593f502e3994b6bc79946a66e5f;p=history.git [SPARC32]: Fix UP build with spinlock debugging enabled. atomic32.c assumes that arbitrary stuff can be passed into spin_lock() on non-SMP builds, which is true except for when spinlock debugging is enabled. Signed-off-by: David S. Miller --- diff --git a/arch/sparc/lib/atomic32.c b/arch/sparc/lib/atomic32.c index e28a6af2a0af..19724c5800a7 100644 --- a/arch/sparc/lib/atomic32.c +++ b/arch/sparc/lib/atomic32.c @@ -20,8 +20,9 @@ spinlock_t __atomic_hash[ATOMIC_HASH_SIZE] = { #else /* SMP */ +static spinlock_t dummy = SPIN_LOCK_UNLOCKED; #define ATOMIC_HASH_SIZE 1 -#define ATOMIC_HASH(a) 0 +#define ATOMIC_HASH(a) (&dummy) #endif /* SMP */