From f439f23b8f2d57ce5bb75f4e43f55eeb74755bc8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 28 May 2014 15:21:21 -0700 Subject: [PATCH] ofproto-dpif-xlate: Mark xcfgp and new_xcfg as static. Found by sparse. Signed-off-by: Ben Pfaff Acked-by: Ryan Wilson --- ofproto/ofproto-dpif-xlate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index c23021639..068d54ff3 100644 --- a/ofproto/ofproto-dpif-xlate.c +++ b/ofproto/ofproto-dpif-xlate.c @@ -304,8 +304,8 @@ struct xlate_cfg { struct hmap xbundles; struct hmap xports; }; -OVSRCU_TYPE(struct xlate_cfg *) xcfgp = OVSRCU_TYPE_INITIALIZER; -struct xlate_cfg *new_xcfg = NULL; +static OVSRCU_TYPE(struct xlate_cfg *) xcfgp = OVSRCU_TYPE_INITIALIZER; +static struct xlate_cfg *new_xcfg = NULL; static bool may_receive(const struct xport *, struct xlate_ctx *); static void do_xlate_actions(const struct ofpact *, size_t ofpacts_len,