summaryrefslogtreecommitdiffstats
path: root/net/netlink/genetlink.c
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2012-07-24 07:44:01 +0200
committerDavid S. Miller <davem@davemloft.net>2012-07-24 09:01:30 +0200
commit320f5ea0cedc08ef65d67e056bcb9d181386ef2c (patch)
tree5845fb51d8cdd01729bba4e757e38a801386a4fb /net/netlink/genetlink.c
parentr8169: revert "add byte queue limit support". (diff)
downloadlinux-320f5ea0cedc08ef65d67e056bcb9d181386ef2c.tar.xz
linux-320f5ea0cedc08ef65d67e056bcb9d181386ef2c.zip
genetlink: define lockdep_genl_is_held() when CONFIG_LOCKDEP
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>
Diffstat (limited to 'net/netlink/genetlink.c')
-rw-r--r--net/netlink/genetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
index 62ebe3c6291c..fda497412fc3 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);