git: 1ebd9dc37266 - stable/13 - LinuxKPI: add lockdep_map
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Jul 18 00:35:59 UTC 2021
The branch stable/13 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=1ebd9dc372664b744b9000b45e2744e8e573642c
commit 1ebd9dc372664b744b9000b45e2744e8e573642c
Author: Bjoern A. Zeeb <bz at FreeBSD.org>
AuthorDate: 2021-03-23 16:51:08 +0000
Commit: Bjoern A. Zeeb <bz at FreeBSD.org>
CommitDate: 2021-07-18 00:34:58 +0000
LinuxKPI: add lockdep_map
Add stubs for struct lockdep_map and three accessor functions
used by iwlwifi.
Sponsored by: The FreeBSD Foundation
Reviewed by: hselasky, emaste
Differential Revision: https://reviews.freebsd.org/D29398
(cherry picked from commit f1069375d97384754a9e8ee8bc21a32d3ad10987)
---
sys/compat/linuxkpi/common/include/linux/lockdep.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/linux/lockdep.h b/sys/compat/linuxkpi/common/include/linux/lockdep.h
index e270224b0bde..0bcb1fa7b925 100644
--- a/sys/compat/linuxkpi/common/include/linux/lockdep.h
+++ b/sys/compat/linuxkpi/common/include/linux/lockdep.h
@@ -36,6 +36,8 @@
struct lock_class_key {
};
+struct lockdep_map {
+};
#define lockdep_set_class(lock, key)
#define lockdep_set_subclass(lock, sub)
@@ -90,4 +92,8 @@ lockdep_is_held(void *__m)
#define lockdep_repin_lock(l,c) do { } while (0)
#define lockdep_unpin_lock(l,c) do { } while (0)
+#define lock_map_acquire(_map) do { } while (0)
+#define lock_map_acquire_read(_map) do { } while (0)
+#define lock_map_release(_map) do { } while (0)
+
#endif /* _LINUX_LOCKDEP_H_ */
More information about the dev-commits-src-all
mailing list