diff options
author | Lai Jiangshan <laijs@cn.fujitsu.com> | 2012-10-09 17:49:47 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-10 01:15:44 -0400 |
commit | 462e1e1bc879d10d7c2ce96a1b1001edaaa815ba (patch) | |
tree | a21ddf540ad7927eeea26c4979ce4e2356cb20c9 /include/linux/lglock.h | |
parent | 614c321f4bf130766ff66fd142b1da47ab037303 (diff) |
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>
Diffstat (limited to 'include/linux/lglock.h')
-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 } |