]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SPARC64]: Fix SMP build.
authorDavid S. Miller <davem@sunset.davemloft.net>
Mon, 25 Apr 2005 04:04:02 +0000 (21:04 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 25 Apr 2005 04:04:02 +0000 (21:04 -0700)
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>
include/asm-sparc64/spinlock.h

index d1f91a4f24ae59f78ed81dbed825cb09f9677e5c..db7581bdb53141a8493991dc02c8bb20af768f1d 100644 (file)
@@ -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)