summaryrefslogtreecommitdiffstats
path: root/include/linux/rtnetlink.h
diff options
context:
space:
mode:
authorYaowei Bai <bywxiaobai@163.com>2015-10-08 21:29:02 +0800
committerDavid S. Miller <davem@davemloft.net>2015-10-09 07:49:06 -0700
commit0cbf334376d5e82d7a2f5cd234ca4f5d0843f3ea (patch)
treee6fd3232b0e38cac01154eada278a18bcb234ca2 /include/linux/rtnetlink.h
parentf06cc7b284f3dfb2c5decbf9fde711b50a530050 (diff)
downloadop-kernel-dev-0cbf334376d5e82d7a2f5cd234ca4f5d0843f3ea.zip
op-kernel-dev-0cbf334376d5e82d7a2f5cd234ca4f5d0843f3ea.tar.gz
net/core: lockdep_rtnl_is_held can be boolean
This patch makes lockdep_rtnl_is_held return bool due to this particular function only using either one or zero as its return value. In another patch lockdep_is_held is also made return bool. No functional change. Signed-off-by: Yaowei Bai <bywxiaobai@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/rtnetlink.h')
-rw-r--r--include/linux/rtnetlink.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 39adaa9..4be5048 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -33,11 +33,11 @@ extern wait_queue_head_t netdev_unregistering_wq;
extern struct mutex net_mutex;
#ifdef CONFIG_PROVE_LOCKING
-extern int lockdep_rtnl_is_held(void);
+extern bool lockdep_rtnl_is_held(void);
#else
-static inline int lockdep_rtnl_is_held(void)
+static inline bool lockdep_rtnl_is_held(void)
{
- return 1;
+ return true;
}
#endif /* #ifdef CONFIG_PROVE_LOCKING */
OpenPOWER on IntegriCloud