diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-25 07:42:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-25 07:42:22 -0700 |
commit | cf025109e879294f4c6aecf94de1e7b592a9fb07 (patch) | |
tree | 05758cc7548b82c3b5d5641439f2a20480475bb1 /include/asm-sparc64/spinlock.h | |
parent | edec231a8a652384cb6d61e648338aa5155f2b72 (diff) | |
parent | 9a59c1860d01b3dea9ab01d5cefb9d5c52042e6d (diff) | |
download | op-kernel-dev-cf025109e879294f4c6aecf94de1e7b592a9fb07.zip op-kernel-dev-cf025109e879294f4c6aecf94de1e7b592a9fb07.tar.gz |
Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6.git
Diffstat (limited to 'include/asm-sparc64/spinlock.h')
-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) |