Commit 487f1f5e authored by Alexander Viro's avatar Alexander Viro Committed by David S. Miller

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent f2b16d7e
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment