From 15d90bb6c970eb1c96f8ffada260780a03660a8a Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Wed, 24 Nov 2010 09:31:49 -0800 Subject: [PATCH] tunnels: Mark tnl_ops as static. Both GRE and CAPWAP have tnl_ops that are only accessed inside of their respective files. Therefore mark these structures as static. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- datapath/vport-capwap.c | 2 +- datapath/vport-gre.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/vport-capwap.c b/datapath/vport-capwap.c index f732657fe..1c2d41b25 100644 --- a/datapath/vport-capwap.c +++ b/datapath/vport-capwap.c @@ -212,7 +212,7 @@ out: return 0; } -const struct tnl_ops capwap_tnl_ops = { +static const struct tnl_ops capwap_tnl_ops = { .tunnel_type = TNL_T_PROTO_CAPWAP, .ipproto = IPPROTO_UDP, .hdr_len = capwap_hdr_len, diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c index fcf1edea7..10ee63fec 100644 --- a/datapath/vport-gre.c +++ b/datapath/vport-gre.c @@ -332,7 +332,7 @@ error: return 0; } -const struct tnl_ops gre_tnl_ops = { +static const struct tnl_ops gre_tnl_ops = { .tunnel_type = TNL_T_PROTO_GRE, .ipproto = IPPROTO_GRE, .hdr_len = gre_hdr_len, -- 2.43.0