aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/fou6.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2017-05-19 12:55:54 -0400
committerDavid S. Miller <davem@davemloft.net>2017-05-21 13:42:36 -0400
commit9dc621afa8d673d4bdaab2d850699cd98a50b14a (patch)
tree73121e65a34068ef5ee8f8b2c7439a5d4bf08ed7 /net/ipv6/fou6.c
parentc718c6d66b249954d38eebe74724229f635fa655 (diff)
fou: make local function static
The build header functions are not used by any other code. net/ipv6/fou6.c:36:5: warning: no previous prototype for ‘fou6_build_header’ [-Wmissing-prototypes] net/ipv6/fou6.c:54:5: warning: no previous prototype for ‘gue6_build_header’ [-Wmissing-prototypes] Need to do some code rearranging to satisfy different Kconfig possiblities. Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/fou6.c')
-rw-r--r--net/ipv6/fou6.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/net/ipv6/fou6.c b/net/ipv6/fou6.c
index 9ea249b9451e..6de3c04b0f30 100644
--- a/net/ipv6/fou6.c
+++ b/net/ipv6/fou6.c
@@ -14,6 +14,8 @@
14#include <net/udp.h> 14#include <net/udp.h>
15#include <net/udp_tunnel.h> 15#include <net/udp_tunnel.h>
16 16
17#if IS_ENABLED(CONFIG_IPV6_FOU_TUNNEL)
18
17static void fou6_build_udp(struct sk_buff *skb, struct ip_tunnel_encap *e, 19static void fou6_build_udp(struct sk_buff *skb, struct ip_tunnel_encap *e,
18 struct flowi6 *fl6, u8 *protocol, __be16 sport) 20 struct flowi6 *fl6, u8 *protocol, __be16 sport)
19{ 21{
@@ -33,8 +35,8 @@ static void fou6_build_udp(struct sk_buff *skb, struct ip_tunnel_encap *e,
33 *protocol = IPPROTO_UDP; 35 *protocol = IPPROTO_UDP;
34} 36}
35 37
36int fou6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e, 38static int fou6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
37 u8 *protocol, struct flowi6 *fl6) 39 u8 *protocol, struct flowi6 *fl6)
38{ 40{
39 __be16 sport; 41 __be16 sport;
40 int err; 42 int err;
@@ -49,10 +51,9 @@ int fou6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
49 51
50 return 0; 52 return 0;
51} 53}
52EXPORT_SYMBOL(fou6_build_header);
53 54
54int gue6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e, 55static int gue6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
55 u8 *protocol, struct flowi6 *fl6) 56 u8 *protocol, struct flowi6 *fl6)
56{ 57{
57 __be16 sport; 58 __be16 sport;
58 int err; 59 int err;
@@ -67,9 +68,6 @@ int gue6_build_header(struct sk_buff *skb, struct ip_tunnel_encap *e,
67 68
68 return 0; 69 return 0;
69} 70}
70EXPORT_SYMBOL(gue6_build_header);
71
72#if IS_ENABLED(CONFIG_IPV6_FOU_TUNNEL)
73 71
74static const struct ip6_tnl_encap_ops fou_ip6tun_ops = { 72static const struct ip6_tnl_encap_ops fou_ip6tun_ops = {
75 .encap_hlen = fou_encap_hlen, 73 .encap_hlen = fou_encap_hlen,