Skip to contentSkip to conversation

genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP

PATCH Applied Cong Wang 2 participants 2 messages Jul 24, 2012

Subsystems (2)
lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP

From: WANG Cong <[email protected]>

lockdep_is_held() is defined when CONFIG_LOCKDEP, not CONFIG_PROVE_LOCKING.

Cc "David S. Miller" <[email protected]>
Cc Jesse Gross <[email protected]>

---

include/linux/genetlink.h +1 -1
index 7a11401..5ab61c1 100644
@@ -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
 
net/netlink/genetlink.c +1 -1
index 62ebe3c..fda4974 100644
@@ -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);