genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 24 Jul 2012 05:44:01 +0000 (13:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jul 2012 07:01:30 +0000 (00:01 -0700)
lockdep_is_held() is defined when CONFIG_LOCKDEP, not CONFIG_PROVE_LOCKING.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jesse Gross <jesse@nicira.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/genetlink.h
net/netlink/genetlink.c

index 7a11401..5ab61c1 100644 (file)
@@ -85,7 +85,7 @@ enum {
 /* All generic netlink requests are serialized by a global lock.  */
 extern void genl_lock(void);
 extern void genl_unlock(void);
-#ifdef CONFIG_PROVE_LOCKING
+#ifdef CONFIG_LOCKDEP
 extern int lockdep_genl_is_held(void);
 #endif
 
index 62ebe3c..fda4974 100644 (file)
@@ -33,7 +33,7 @@ void genl_unlock(void)
 }
 EXPORT_SYMBOL(genl_unlock);
 
-#ifdef CONFIG_PROVE_LOCKING
+#ifdef CONFIG_LOCKDEP
 int lockdep_genl_is_held(void)
 {
        return lockdep_is_held(&genl_mutex);