Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102709534
D44604.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
710 B
Referenced Files
None
Subscribers
None
D44604.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
@@ -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
Details
Attached
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)
Attached To
Mode
D44604: lockdep_assert: wrong 'cond' used in WARN_ON MACRO
Attached
Detach File
Event Timeline
Log In to Comment