backports: add lockdep_rtnl_is_held() for < 3.13 without CONFIG_PROVE_LOCKING
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 31 May 2017 08:30:10 +0000 (11:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 16 Jun 2017 12:59:41 +0000 (14:59 +0200)
commit1bfbd3c3571960fa2d935f5998fa1e450b1f9c05
treefdafd5d707d3353ef3674c29ca0307080829224a
parent83e111d51e9c053c9c9af2d88189f5f868015929
backports: add lockdep_rtnl_is_held() for < 3.13 without CONFIG_PROVE_LOCKING

In kernels earlier than 3.13, lockdep_rtnl_is_held() is only declared
in rtnetlink.h when CONFIG_PROVE_LOCKING is not set.  Backport this
function if that's the case.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/linux/rtnetlink.h