Commit 462e1e1bc879d10d7c2ce96a1b1001edaaa815ba
Committed by
Al Viro
1 parent
614c321f4b
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
lglock: remove unused DEFINE_LGLOCK_LOCKDEP()
struct lglocks use their own lock_key/lock_dep_map which are defined in struct lglock. DEFINE_LGLOCK_LOCKDEP() is unused, so remove it and save a small piece of memory. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Andi Kleen <ak@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 1 changed file with 0 additions and 9 deletions Side-by-side Diff
include/linux/lglock.h
... | ... | @@ -36,16 +36,8 @@ |
36 | 36 | |
37 | 37 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
38 | 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 | 39 | #else |
46 | 40 | #define LOCKDEP_INIT_MAP(a, b, c, d) |
47 | - | |
48 | -#define DEFINE_LGLOCK_LOCKDEP(name) | |
49 | 41 | #endif |
50 | 42 | |
51 | 43 | struct lglock { |
... | ... | @@ -57,7 +49,6 @@ |
57 | 49 | }; |
58 | 50 | |
59 | 51 | #define DEFINE_LGLOCK(name) \ |
60 | - DEFINE_LGLOCK_LOCKDEP(name); \ | |
61 | 52 | DEFINE_PER_CPU(arch_spinlock_t, name ## _lock) \ |
62 | 53 | = __ARCH_SPIN_LOCK_UNLOCKED; \ |
63 | 54 | struct lglock name = { .lock = &name ## _lock } |