Commit a51a00ea authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] ppc spinlock warning removal

Rusty Russell <rusty@rustcorp.com.au>: 2.5.17 Warning removal for ppc:
  test_and_set_bit now expect an "unsigned long", so we want
  &spinlock->lock rather than &spinlock (even though they are
  equivalent).

  Rusty.
parent b2c71135
...@@ -65,7 +65,7 @@ static inline void _raw_spin_unlock(spinlock_t *lock) ...@@ -65,7 +65,7 @@ static inline void _raw_spin_unlock(spinlock_t *lock)
lock->lock = 0; lock->lock = 0;
} }
#define _raw_spin_trylock(lock) (!test_and_set_bit(0,(lock))) #define _raw_spin_trylock(l) (!test_and_set_bit(0,&(l)->lock))
#else #else
......
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