summaryrefslogtreecommitdiffstats
path: root/include/linux/lockdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/lockdep.h')
-rw-r--r--include/linux/lockdep.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h
index 30a0f81aa130..151d55711082 100644
--- a/include/linux/lockdep.h
+++ b/include/linux/lockdep.h
@@ -394,7 +394,7 @@ extern void lock_unpin_lock(struct lockdep_map *lock, struct pin_cookie);
394 WARN_ON(debug_locks && !lockdep_is_held(l)); \ 394 WARN_ON(debug_locks && !lockdep_is_held(l)); \
395 } while (0) 395 } while (0)
396 396
397#define lockdep_assert_held_exclusive(l) do { \ 397#define lockdep_assert_held_write(l) do { \
398 WARN_ON(debug_locks && !lockdep_is_held_type(l, 0)); \ 398 WARN_ON(debug_locks && !lockdep_is_held_type(l, 0)); \
399 } while (0) 399 } while (0)
400 400
@@ -479,7 +479,7 @@ struct lockdep_map { };
479#define lockdep_is_held_type(l, r) (1) 479#define lockdep_is_held_type(l, r) (1)
480 480
481#define lockdep_assert_held(l) do { (void)(l); } while (0) 481#define lockdep_assert_held(l) do { (void)(l); } while (0)
482#define lockdep_assert_held_exclusive(l) do { (void)(l); } while (0) 482#define lockdep_assert_held_write(l) do { (void)(l); } while (0)
483#define lockdep_assert_held_read(l) do { (void)(l); } while (0) 483#define lockdep_assert_held_read(l) do { (void)(l); } while (0)
484#define lockdep_assert_held_once(l) do { (void)(l); } while (0) 484#define lockdep_assert_held_once(l) do { (void)(l); } while (0)
485 485