From 9056e7b72fc58c4a0b3e84113d029237d9855739 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Wed, 8 Apr 2020 14:34:31 +0300 Subject: lockdep: add lock_acquire_exclusive Define lock_acquire_exclusive() macro that doesn't exist in prior to version 3.14. Related-to: ELB-2388 Signed-off-by: Oleksandr Suvorov --- backport-include/linux/lockdep.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backport-include/linux/lockdep.h b/backport-include/linux/lockdep.h index 12b91b4..17c8ea1 100644 --- a/backport-include/linux/lockdep.h +++ b/backport-include/linux/lockdep.h @@ -3,6 +3,10 @@ #include_next #include +#if LINUX_VERSION_IS_LESS(3,14,0) +#define lock_acquire_exclusive(l, s, t, n, i) lock_acquire(l, s, t, 0, 1, n, i) +#endif + #if LINUX_VERSION_IS_LESS(3,9,0) #undef lockdep_assert_held #ifdef CONFIG_LOCKDEP -- cgit v1.2.3