Skip to contentSkip to conversation

lockdep: remove duplicate definition of STATIC_LOCKDEP_MAP_INIT

PATCH Applied Li Zefan 2 participants 2 messages Jun 23, 2008 – Jun 24, 2008 Locking primitives

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 lockdep: remove duplicate definition of STATIC_LOCKDEP_MAP_INIT

STATIC_LOCKDEP_MAP_INIT is defined twice in lockdep.h. I guess it's a copy & paste.

---
 include/linux/lockdep.h |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
include/linux/lockdep.h +0 -8
index 4c4d236..f6279f6 100644
@@ -276,14 +276,6 @@ extern void lockdep_init_map(struct lockdep_map *lock, const char *name,
 				 (lock)->dep_map.key, sub)
 
 /*
- * To initialize a lockdep_map statically use this macro.
- * Note that _name must not be NULL.
- */
-#define STATIC_LOCKDEP_MAP_INIT(_name, _key) \
-	{ .name = (_name), .key = (void *)(_key), }
-
-
-/*
  * Acquire a lock.
  *
  * Values for "read":
Signature · 1 line
1.5.4.rc3
Applied
#1 lore raw
Quoted 2 lines · Li Zefan

STATIC_LOCKDEP_MAP_INIT is defined twice in lockdep.h. I guess it's a copy & paste.

applied to tip/core/locking, thanks!

Ingo