[ovs-dev] [PATCH] lib/cmap: fix a typo

Ben Pfaff blp at ovn.org
Mon Feb 26 19:45:00 UTC 2018


Thanks zhangliping and Mark, I applied this to master.

This does not fix a user-visible bug because this macro has no users.

On Mon, Feb 26, 2018 at 10:06:59AM -0600, Mark Michelson wrote:
> Acked-by: Mark Michelson <mmichels at redhat.com>
> 
> On 02/24/2018 01:34 AM, zhangliping wrote:
> >From: zhangliping <zhangliping02 at baidu.com>
> >
> >cmap_find_locked should be cmap_find_protected.
> >
> >Signed-off-by: zhangliping <zhangliping02 at baidu.com>
> >---
> >  lib/cmap.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/lib/cmap.h b/lib/cmap.h
> >index d390923c8..5a72b65be 100644
> >--- a/lib/cmap.h
> >+++ b/lib/cmap.h
> >@@ -140,7 +140,7 @@ size_t cmap_replace(struct cmap *, struct cmap_node *old_node,
> >  #define CMAP_FOR_EACH_WITH_HASH(NODE, MEMBER, HASH, CMAP)   \
> >      CMAP_NODE_FOR_EACH(NODE, MEMBER, cmap_find(CMAP, HASH))
> >  #define CMAP_FOR_EACH_WITH_HASH_PROTECTED(NODE, MEMBER, HASH, CMAP)     \
> >-    CMAP_NODE_FOR_EACH_PROTECTED(NODE, MEMBER, cmap_find_locked(CMAP, HASH))
> >+    CMAP_NODE_FOR_EACH_PROTECTED(NODE, MEMBER, cmap_find_protected(CMAP, HASH))
> >  const struct cmap_node *cmap_find(const struct cmap *, uint32_t hash);
> >  struct cmap_node *cmap_find_protected(const struct cmap *, uint32_t hash);
> >
> 
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev


More information about the dev mailing list