Commit bb4005ba authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

ipv6: sr: fix non static symbol warnings

Fixes the following sparse warnings:

net/ipv6/seg6_iptunnel.c:58:5: warning:
 symbol 'nla_put_srh' was not declared. Should it be static?
net/ipv6/seg6_iptunnel.c:238:5: warning:
 symbol 'seg6_input' was not declared. Should it be static?
net/ipv6/seg6_iptunnel.c:254:5: warning:
 symbol 'seg6_output' was not declared. Should it be static?
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 89d82452
...@@ -55,7 +55,7 @@ static const struct nla_policy seg6_iptunnel_policy[SEG6_IPTUNNEL_MAX + 1] = { ...@@ -55,7 +55,7 @@ static const struct nla_policy seg6_iptunnel_policy[SEG6_IPTUNNEL_MAX + 1] = {
[SEG6_IPTUNNEL_SRH] = { .type = NLA_BINARY }, [SEG6_IPTUNNEL_SRH] = { .type = NLA_BINARY },
}; };
int nla_put_srh(struct sk_buff *skb, int attrtype, static int nla_put_srh(struct sk_buff *skb, int attrtype,
struct seg6_iptunnel_encap *tuninfo) struct seg6_iptunnel_encap *tuninfo)
{ {
struct seg6_iptunnel_encap *data; struct seg6_iptunnel_encap *data;
...@@ -235,7 +235,7 @@ static int seg6_do_srh(struct sk_buff *skb) ...@@ -235,7 +235,7 @@ static int seg6_do_srh(struct sk_buff *skb)
return 0; return 0;
} }
int seg6_input(struct sk_buff *skb) static int seg6_input(struct sk_buff *skb)
{ {
int err; int err;
...@@ -251,7 +251,7 @@ int seg6_input(struct sk_buff *skb) ...@@ -251,7 +251,7 @@ int seg6_input(struct sk_buff *skb)
return dst_input(skb); return dst_input(skb);
} }
int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb) static int seg6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
{ {
struct dst_entry *orig_dst = skb_dst(skb); struct dst_entry *orig_dst = skb_dst(skb);
struct dst_entry *dst = NULL; struct dst_entry *dst = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment