diff options
Diffstat (limited to 'include/linux/rtnetlink.h')
| -rw-r--r-- | include/linux/rtnetlink.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 939428ad25ac..8e3e66ac0a52 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
| @@ -24,6 +24,11 @@ extern int rtnl_trylock(void); | |||
| 24 | extern int rtnl_is_locked(void); | 24 | extern int rtnl_is_locked(void); |
| 25 | #ifdef CONFIG_PROVE_LOCKING | 25 | #ifdef CONFIG_PROVE_LOCKING |
| 26 | extern int lockdep_rtnl_is_held(void); | 26 | extern int lockdep_rtnl_is_held(void); |
| 27 | #else | ||
| 28 | static inline int lockdep_rtnl_is_held(void) | ||
| 29 | { | ||
| 30 | return 1; | ||
| 31 | } | ||
| 27 | #endif /* #ifdef CONFIG_PROVE_LOCKING */ | 32 | #endif /* #ifdef CONFIG_PROVE_LOCKING */ |
| 28 | 33 | ||
| 29 | /** | 34 | /** |
