aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-07-06 11:34:00 +0300
committerHauke Mehrtens <hauke@hauke-m.de>2020-08-03 22:44:37 +0200
commitcf0810efa9ab873467cb5a3c04deaca1394af6b6 (patch)
tree3bb64097d182982958ab8d772c438f99eb51e0e4
parent4817b979a367c70c741b746e5c40fcc45eab9cac (diff)
downloadbackports-cf0810efa9ab873467cb5a3c04deaca1394af6b6.tar.gz
backports: add lock_acquire_exclusive
Define lock_acquire_exclusive() macro that doesn't exist before version 3.14. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--backport/backport-include/linux/lockdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/backport/backport-include/linux/lockdep.h b/backport/backport-include/linux/lockdep.h
index 12b91b4f..17c8ea16 100644
--- a/backport/backport-include/linux/lockdep.h
+++ b/backport/backport-include/linux/lockdep.h
@@ -3,6 +3,10 @@
#include_next <linux/lockdep.h>
#include <linux/version.h>
+#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