Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109052018
D38538.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
995 B
Referenced Files
None
Subscribers
None
D38538.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/lockdep.h b/sys/compat/linuxkpi/common/include/linux/lockdep.h
--- a/sys/compat/linuxkpi/common/include/linux/lockdep.h
+++ b/sys/compat/linuxkpi/common/include/linux/lockdep.h
@@ -52,6 +52,9 @@
#define lockdep_unregister_key(key) do { } while(0)
#ifdef INVARIANTS
+#define lockdep_assert(cond) do { WARN_ON(!cond); } while (0)
+#define lockdep_assert_once(cond) do { WARN_ON_ONCE(!cond); } while (0)
+
#define lockdep_assert_not_held(m) do { \
struct lock_object *__lock = (struct lock_object *)(m); \
LOCK_CLASS(__lock)->lc_assert(__lock, LA_UNLOCKED); \
@@ -81,6 +84,9 @@
#define lockdep_is_held_type(_m, _t) lockdep_is_held(_m)
#else
+#define lockdep_assert(cond) do { } while (0)
+#define lockdep_assert_once(cond) do { } while (0)
+
#define lockdep_assert_not_held(m) do { (void)(m); } while (0)
#define lockdep_assert_held(m) do { (void)(m); } while (0)
#define lockdep_assert_none_held_once() do { } while (0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 4:19 AM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16375428
Default Alt Text
D38538.diff (995 B)
Attached To
Mode
D38538: linuxkpi: Define `lockdep_assert{,_once}()`
Attached
Detach File
Event Timeline
Log In to Comment