scst: Fix the build against kernel v5.0 and before

Fixes: ef161f930f ("scst: Rework handling of recursive locking")
Reported-by: Ville Skytta <ville.skytta@iki.fi>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8669 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-11-24 04:49:58 +00:00
parent 50af8e3c4d
commit c1a340b484
+14
View File
@@ -839,6 +839,20 @@ static inline bool list_entry_in_list(const struct list_head *entry)
#define lockdep_assert_held(l) (void)(l)
#endif
/*
* See also commit 108c14858b9e ("locking/lockdep: Add support for dynamic
* keys").
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
static inline void lockdep_register_key(struct lock_class_key *key)
{
}
static inline void lockdep_unregister_key(struct lock_class_key *key)
{
}
#endif
/* <linux/mempoool.h> */
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
/*