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>
ndo_dflt_fdb_add(ndm, tb, dev, addr, flags)
#endif
+#if LINUX_VERSION_IS_LESS(3,13,0) && \
+ !defined(CONFIG_PROVE_LOCKING)
+static inline bool lockdep_rtnl_is_held(void)
+{
+ return true;
+}
+#endif
+
#endif /* __BACKPORT_LINUX_RTNETLINK_H */