mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 20:14:08 +00:00
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>
This commit is contained in:
parent
17bcb684f0
commit
320f5ea0ce
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ enum {
|
||||||
/* All generic netlink requests are serialized by a global lock. */
|
/* All generic netlink requests are serialized by a global lock. */
|
||||||
extern void genl_lock(void);
|
extern void genl_lock(void);
|
||||||
extern void genl_unlock(void);
|
extern void genl_unlock(void);
|
||||||
#ifdef CONFIG_PROVE_LOCKING
|
#ifdef CONFIG_LOCKDEP
|
||||||
extern int lockdep_genl_is_held(void);
|
extern int lockdep_genl_is_held(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ void genl_unlock(void)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(genl_unlock);
|
EXPORT_SYMBOL(genl_unlock);
|
||||||
|
|
||||||
#ifdef CONFIG_PROVE_LOCKING
|
#ifdef CONFIG_LOCKDEP
|
||||||
int lockdep_genl_is_held(void)
|
int lockdep_genl_is_held(void)
|
||||||
{
|
{
|
||||||
return lockdep_is_held(&genl_mutex);
|
return lockdep_is_held(&genl_mutex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue