tunnels: Mark tnl_ops as static.
authorJesse Gross <jesse@nicira.com>
Wed, 24 Nov 2010 17:31:49 +0000 (09:31 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Dec 2010 01:10:16 +0000 (17:10 -0800)
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@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-capwap.c
datapath/vport-gre.c

index f732657fefc25dd68867a5247ddfc0dedcb9ff58..1c2d41b257f8a8e16152b2bb451b463a5310b9f4 100644 (file)
@@ -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,
index fcf1edea76c388193e7b73d381c883d824fe83ce..10ee63fecef9777039ad21844a57283a18d4fe16 100644 (file)
@@ -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,