[ovs-dev] [PATCH 11/14] tunnels: Mark tnl_ops as static.

Jesse Gross jesse at nicira.com
Thu Dec 2 20:37:00 UTC 2010


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 <jesse at nicira.com>
---
 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 f732657..1c2d41b 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 fcf1ede..10ee63f 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,
-- 
1.7.1





More information about the dev mailing list