lglock: remove unused DEFINE_LGLOCK_LOCKDEP()
authorLai Jiangshan <[email protected]>
Tue, 9 Oct 2012 21:49:47 +0000 (14:49 -0700)
committerAl Viro <[email protected]>
Wed, 10 Oct 2012 05:15:44 +0000 (01:15 -0400)
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 <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
include/linux/lglock.h

index f01e5f6d1f07a4966927bb7acd5707f8f77904c8..45eff71de887462f87a536a7bcac2ff87008d518 100644 (file)
 
 #ifdef CONFIG_DEBUG_LOCK_ALLOC
 #define LOCKDEP_INIT_MAP lockdep_init_map
-
-#define DEFINE_LGLOCK_LOCKDEP(name)                                    \
- struct lock_class_key name##_lock_key;                                        \
- struct lockdep_map name##_lock_dep_map;                               \
- EXPORT_SYMBOL(name##_lock_dep_map)
-
 #else
 #define LOCKDEP_INIT_MAP(a, b, c, d)
-
-#define DEFINE_LGLOCK_LOCKDEP(name)
 #endif
 
 struct lglock {
@@ -57,7 +49,6 @@ struct lglock {
 };
 
 #define DEFINE_LGLOCK(name)                                            \
-       DEFINE_LGLOCK_LOCKDEP(name);                                    \
        DEFINE_PER_CPU(arch_spinlock_t, name ## _lock)                  \
        = __ARCH_SPIN_LOCK_UNLOCKED;                                    \
        struct lglock name = { .lock = &name ## _lock }