diff options
| -rw-r--r-- | include/linux/lglock.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/lglock.h b/include/linux/lglock.h index f01e5f6d1f07..45eff71de887 100644 --- a/include/linux/lglock.h +++ b/include/linux/lglock.h | |||
| @@ -36,16 +36,8 @@ | |||
| 36 | 36 | ||
| 37 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 37 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
| 38 | #define LOCKDEP_INIT_MAP lockdep_init_map | 38 | #define LOCKDEP_INIT_MAP lockdep_init_map |
| 39 | |||
| 40 | #define DEFINE_LGLOCK_LOCKDEP(name) \ | ||
| 41 | struct lock_class_key name##_lock_key; \ | ||
| 42 | struct lockdep_map name##_lock_dep_map; \ | ||
| 43 | EXPORT_SYMBOL(name##_lock_dep_map) | ||
| 44 | |||
| 45 | #else | 39 | #else |
| 46 | #define LOCKDEP_INIT_MAP(a, b, c, d) | 40 | #define LOCKDEP_INIT_MAP(a, b, c, d) |
| 47 | |||
| 48 | #define DEFINE_LGLOCK_LOCKDEP(name) | ||
| 49 | #endif | 41 | #endif |
| 50 | 42 | ||
| 51 | struct lglock { | 43 | struct lglock { |
| @@ -57,7 +49,6 @@ struct lglock { | |||
| 57 | }; | 49 | }; |
| 58 | 50 | ||
| 59 | #define DEFINE_LGLOCK(name) \ | 51 | #define DEFINE_LGLOCK(name) \ |
| 60 | DEFINE_LGLOCK_LOCKDEP(name); \ | ||
| 61 | DEFINE_PER_CPU(arch_spinlock_t, name ## _lock) \ | 52 | DEFINE_PER_CPU(arch_spinlock_t, name ## _lock) \ |
| 62 | = __ARCH_SPIN_LOCK_UNLOCKED; \ | 53 | = __ARCH_SPIN_LOCK_UNLOCKED; \ |
| 63 | struct lglock name = { .lock = &name ## _lock } | 54 | struct lglock name = { .lock = &name ## _lock } |
