Page MenuHomeFreeBSD

D44604.diff
No OneTemporary

D44604.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
@@ -50,8 +50,8 @@
#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(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); \

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 4:35 AM (22 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14670342
Default Alt Text
D44604.diff (710 B)

Event Timeline