lwtunnel: Make lwtun_encaps[] static
authorThomas Graf <tgraf@suug.ch>
Wed, 29 Jul 2015 07:45:40 +0000 (09:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 05:59:39 +0000 (22:59 -0700)
Any external user should use the registration API instead of
accessing this directly.

Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/lwtunnel.h
net/core/lwtunnel.c

index b02039081b0485caa3e7c6ec295c19c36566d63c..33bd30963a95a529353da82309361743d30bc8cf 100644 (file)
@@ -31,9 +31,6 @@ struct lwtunnel_encap_ops {
        int (*cmp_encap)(struct lwtunnel_state *a, struct lwtunnel_state *b);
 };
 
-extern const struct lwtunnel_encap_ops __rcu *
-               lwtun_encaps[LWTUNNEL_ENCAP_MAX+1];
-
 #ifdef CONFIG_LWTUNNEL
 static inline struct lwtunnel_state *
 lwtstate_get(struct lwtunnel_state *lws)
index 5f7fae70ef681cea3a2660b94058a5c5e54dc2e6..c240c895b319bdc27ceadc5de480098dd9c4e4ee 100644 (file)
@@ -37,7 +37,7 @@ struct lwtunnel_state *lwtunnel_state_alloc(int encap_len)
 }
 EXPORT_SYMBOL(lwtunnel_state_alloc);
 
-const struct lwtunnel_encap_ops __rcu *
+static const struct lwtunnel_encap_ops __rcu *
                lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly;
 
 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,