]> git.hungrycats.org Git - linux/commitdiff
[SPARC32]: Fix UP build with spinlock debugging enabled.
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Thu, 10 Feb 2005 10:08:27 +0000 (02:08 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 10 Feb 2005 10:08:27 +0000 (02:08 -0800)
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 <davem@davemloft.net>
arch/sparc/lib/atomic32.c

index e28a6af2a0aff83d17951f7bc5359985420bd3b8..19724c5800a79e48c23704e03af3668a691bb332 100644 (file)
@@ -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 */