Backports Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] backports: add lock_acquire_exclusive
@ 2020-07-06  8:34 Oleksandr Suvorov
  0 siblings, 0 replies; only message in thread
From: Oleksandr Suvorov @ 2020-07-06  8:34 UTC (permalink / raw)
  To: hauke, mcgrof; +Cc: backports, Oleksandr Suvorov

Define lock_acquire_exclusive() macro that doesn't exist
before version 3.14.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
---

 backport/backport-include/linux/lockdep.h | 4 ++++
 1 file changed, 4 insertions(+)

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
-- 
2.25.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06  8:34 [PATCH] backports: add lock_acquire_exclusive Oleksandr Suvorov

Backports Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/backports/0 backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ https://lore.kernel.org/backports \
		backports@vger.kernel.org
	public-inbox-index backports

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.backports


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git