]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
lockdep: remove duplicate definition of STATIC_LOCKDEP_MAP_INIT
authorLi Zefan <lizf@cn.fujitsu.com>
Mon, 23 Jun 2008 02:52:42 +0000 (10:52 +0800)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Jun 2008 11:43:07 +0000 (13:43 +0200)
STATIC_LOCKDEP_MAP_INIT is defined twice in lockdep.h. I guess
it's a copy & paste.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/lockdep.h

index b26fbc715a505f6ec412cefd3013423ff9350f6c..2486eb4edbf146b77effbfe27c14689ea70db1de 100644 (file)
@@ -278,14 +278,6 @@ extern void lockdep_init_map(struct lockdep_map *lock, const char *name,
                lockdep_init_map(&(lock)->dep_map, #lock, \
                                 (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.
  *