git: f1069375d973 - main - LinuxKPI: add lockdep_map

Bjoern A. Zeeb bz at FreeBSD.org
Wed Mar 24 23:07:44 UTC 2021


The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=f1069375d97384754a9e8ee8bc21a32d3ad10987

commit f1069375d97384754a9e8ee8bc21a32d3ad10987
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-03-24 22:50:55 +0000

    LinuxKPI: add lockdep_map
    
    Add stubs for struct lockdep_map and three accessor functions
    used by iwlwifi.
    
    Obtained-from:  bz_iwlwifi
    Sponsored-by:   The FreeBSD Foundation
    MFC-after:      2 weeks
    Reviewed-by:    hselasky, emaste
    Differential Revision:  https://reviews.freebsd.org/D29398
---
 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 a86157ba5924..de82d06a419e 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)
@@ -85,4 +87,8 @@ lockdep_is_held(void *__m)
 #define	mutex_acquire(...) do { } while (0)
 #define	mutex_release(...) 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