diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2005-04-24 21:04:02 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-04-24 21:04:02 -0700 |
commit | 9a59c1860d01b3dea9ab01d5cefb9d5c52042e6d (patch) | |
tree | be41af760482e2bc17e23d465edd0f98adc8d464 /include | |
parent | 24dc6ead53f8fcae4b1908c4ea3fea75ee844a6d (diff) | |
download | op-kernel-dev-9a59c1860d01b3dea9ab01d5cefb9d5c52042e6d.zip op-kernel-dev-9a59c1860d01b3dea9ab01d5cefb9d5c52042e6d.tar.gz |
[SPARC64]: Fix SMP build.
Kill build failures in the SMP+!PREEMPT case introduced
by Al Viro's spinlock.h changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sparc64/spinlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-sparc64/spinlock.h b/include/asm-sparc64/spinlock.h index d1f91a4..db7581b 100644 --- a/include/asm-sparc64/spinlock.h +++ b/include/asm-sparc64/spinlock.h @@ -44,7 +44,7 @@ typedef struct { #define spin_unlock_wait(lp) \ do { membar("#LoadLoad"); \ -} while(lp->lock) +} while((lp)->lock) static inline void _raw_spin_lock(spinlock_t *lock) { @@ -149,7 +149,7 @@ typedef struct { unsigned int break_lock; #endif } rwlock_t; -#define RW_LOCK_UNLOCKED {0,} +#define RW_LOCK_UNLOCKED (rwlock_t) {0,} #define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0) static void inline __read_lock(rwlock_t *lock) |