* [Patch] genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP
@ 2012-07-24 5:44 Cong Wang
2012-07-24 7:01 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Cong Wang @ 2012-07-24 5:44 UTC (permalink / raw)
To: netdev; +Cc: WANG Cong, David S. Miller, Jesse Gross
From: WANG Cong <xiyou.wangcong@gmail.com>
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>
---
diff --git a/include/linux/genetlink.h b/include/linux/genetlink.h
index 7a11401..5ab61c1 100644
--- a/include/linux/genetlink.h
+++ b/include/linux/genetlink.h
@@ -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
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 62ebe3c..fda4974 100644
--- a/net/netlink/genetlink.c
+++ b/net/netlink/genetlink.c
@@ -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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Patch] genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP
2012-07-24 5:44 [Patch] genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP Cong Wang
@ 2012-07-24 7:01 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-07-24 7:01 UTC (permalink / raw)
To: amwang; +Cc: netdev, xiyou.wangcong, jesse
From: Cong Wang <amwang@redhat.com>
Date: Tue, 24 Jul 2012 13:44:01 +0800
> From: WANG Cong <xiyou.wangcong@gmail.com>
>
> 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>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-24 7:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 5:44 [Patch] genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP Cong Wang
2012-07-24 7:01 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).