提交 9a59c186 编写于 作者: D David S. Miller

[SPARC64]: Fix SMP build.

Kill build failures in the SMP+!PREEMPT case introduced
by Al Viro's spinlock.h changes.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 24dc6ead
...@@ -44,7 +44,7 @@ typedef struct { ...@@ -44,7 +44,7 @@ typedef struct {
#define spin_unlock_wait(lp) \ #define spin_unlock_wait(lp) \
do { membar("#LoadLoad"); \ do { membar("#LoadLoad"); \
} while(lp->lock) } while((lp)->lock)
static inline void _raw_spin_lock(spinlock_t *lock) static inline void _raw_spin_lock(spinlock_t *lock)
{ {
...@@ -149,7 +149,7 @@ typedef struct { ...@@ -149,7 +149,7 @@ typedef struct {
unsigned int break_lock; unsigned int break_lock;
#endif #endif
} rwlock_t; } 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) #define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0)
static void inline __read_lock(rwlock_t *lock) static void inline __read_lock(rwlock_t *lock)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册