diff options
Diffstat (limited to 'include/linux/spinlock.h')
-rw-r--r-- | include/linux/spinlock.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 7df6c17b0281..363239087263 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h | |||
@@ -375,10 +375,7 @@ static inline int spin_can_lock(spinlock_t *lock) | |||
375 | return raw_spin_can_lock(&lock->rlock); | 375 | return raw_spin_can_lock(&lock->rlock); |
376 | } | 376 | } |
377 | 377 | ||
378 | static inline void assert_spin_locked(spinlock_t *lock) | 378 | #define assert_spin_locked(lock) assert_raw_spin_locked(&(lock)->rlock) |
379 | { | ||
380 | assert_raw_spin_locked(&lock->rlock); | ||
381 | } | ||
382 | 379 | ||
383 | /* | 380 | /* |
384 | * Pull the atomic_t declaration: | 381 | * Pull the atomic_t declaration: |