mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
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:
@@ -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)
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user