[ovs-dev] [PATCH] vlog: Fix OVS_REQUIRES macro.

William Tu u9012063 at gmail.com
Tue Mar 24 19:16:38 UTC 2020


Pass lock objects, not their addresses, to the annotation macros.

Signed-off-by: William Tu <u9012063 at gmail.com>
---
 lib/vlog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vlog.c b/lib/vlog.c
index 6d17d4837e9c..ee6b0d3a620a 100644
--- a/lib/vlog.c
+++ b/lib/vlog.c
@@ -257,7 +257,7 @@ vlog_get_level(const struct vlog_module *module,
 }
 
 static void
-update_min_level(struct vlog_module *module) OVS_REQUIRES(&log_file_mutex)
+update_min_level(struct vlog_module *module) OVS_REQUIRES(log_file_mutex)
 {
     enum vlog_destination destination;
 
-- 
2.7.4



More information about the dev mailing list