From 7eb5d44f3e9ad456b0683f8d332da4b1769c7c5b Mon Sep 17 00:00:00 2001 From: Lai Jiangshan Date: Tue, 9 Oct 2012 14:49:47 -0700 Subject: [PATCH] --- yaml --- r: 333704 b: refs/heads/master c: 462e1e1bc879d10d7c2ce96a1b1001edaaa815ba h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/lglock.h | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/[refs] b/[refs] index ab535f13ef75..380c1d2e8b85 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 614c321f4bf130766ff66fd142b1da47ab037303 +refs/heads/master: 462e1e1bc879d10d7c2ce96a1b1001edaaa815ba diff --git a/trunk/include/linux/lglock.h b/trunk/include/linux/lglock.h index f01e5f6d1f07..45eff71de887 100644 --- a/trunk/include/linux/lglock.h +++ b/trunk/include/linux/lglock.h @@ -36,16 +36,8 @@ #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 }