ofproto-dpif: Mark rule_release() as no_thread_safety_analysis.
authorBen Pfaff <blp@nicira.com>
Wed, 21 Aug 2013 18:33:49 +0000 (11:33 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 22 Aug 2013 16:42:09 +0000 (09:42 -0700)
Otherwise new Clang complains about this function because it only sometimes
releases the lock (that is, it only does it when there is a lock to
release).

I first noticed these warnings with Clang 1:3.4~svn188890-1~exp1.
I previously used version 1:3.4~svn187484-1~exp1.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c

index 10e179c..6b2bd22 100644 (file)
@@ -4849,6 +4849,7 @@ choose_miss_rule(enum ofputil_port_config config, struct rule_dpif *miss_rule,
 
 void
 rule_release(struct rule_dpif *rule)
+    OVS_NO_THREAD_SAFETY_ANALYSIS
 {
     if (rule) {
         ovs_rwlock_unlock(&rule->up.evict);