Page MenuHomeFreeBSD

D38538.diff
No OneTemporary

D38538.diff

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

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)

Event Timeline