diff options
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d1472a423323..4568120d8533 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -90,6 +90,14 @@ int rtnl_is_locked(void) | |||
90 | } | 90 | } |
91 | EXPORT_SYMBOL(rtnl_is_locked); | 91 | EXPORT_SYMBOL(rtnl_is_locked); |
92 | 92 | ||
93 | #ifdef CONFIG_PROVE_LOCKING | ||
94 | int lockdep_rtnl_is_held(void) | ||
95 | { | ||
96 | return lockdep_is_held(&rtnl_mutex); | ||
97 | } | ||
98 | EXPORT_SYMBOL(lockdep_rtnl_is_held); | ||
99 | #endif /* #ifdef CONFIG_PROVE_LOCKING */ | ||
100 | |||
93 | static struct rtnl_link *rtnl_msg_handlers[NPROTO]; | 101 | static struct rtnl_link *rtnl_msg_handlers[NPROTO]; |
94 | 102 | ||
95 | static inline int rtm_msgindex(int msgtype) | 103 | static inline int rtm_msgindex(int msgtype) |