Commit 320f5ea0 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

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" <>
Cc: Jesse Gross <>
Signed-off-by: default avatarWANG Cong <>
Signed-off-by: default avatarDavid S. Miller <>
parent 17bcb684
......@@ -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);
extern int lockdep_genl_is_held(void);
......@@ -33,7 +33,7 @@ void genl_unlock(void)
int lockdep_genl_is_held(void)
return lockdep_is_held(&genl_mutex);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment