[ovs-dev] [PATCH] ofproto-dpif-xlate: Mark xcfgp and new_xcfg as static.

Ryan Wilson 76511 wryan at vmware.com
Wed May 28 20:25:34 UTC 2014


Acked-by: Ryan Wilson <wryan at nicira.com>

On 5/28/14 12:38 PM, "Ben Pfaff" <blp at nicira.com> wrote:

>Found by sparse.
>
>Signed-off-by: Ben Pfaff <blp at nicira.com>
>---
> 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 c230216..068d54f 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,
>-- 
>1.7.10.4
>
>_______________________________________________
>dev mailing list
>dev at openvswitch.org
>https://urldefense.proofpoint.com/v1/url?u=http://openvswitch.org/mailman/
>listinfo/dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=TfBS78Vw3dzttvXidhbffg%
>3D%3D%0A&m=c8abqU88wsA5Ek7NTh8%2FFFbSXuxsiSIhM1fiF3HFIeg%3D%0A&s=bfef73302
>cf913daf9dcda186f12c79432f70ddbe62f85f512abe6f9d1c979b6




More information about the dev mailing list