Commit 08bd10ff authored by Roopa Prabhu's avatar Roopa Prabhu Committed by David S. Miller

lwtunnel: replace EXPORT_SYMBOL with EXPORT_SYMBOL_GPL

Signed-off-by: default avatarRoopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c14dc48
...@@ -65,7 +65,7 @@ struct lwtunnel_state *lwtunnel_state_alloc(int encap_len) ...@@ -65,7 +65,7 @@ struct lwtunnel_state *lwtunnel_state_alloc(int encap_len)
return lws; return lws;
} }
EXPORT_SYMBOL(lwtunnel_state_alloc); EXPORT_SYMBOL_GPL(lwtunnel_state_alloc);
static const struct lwtunnel_encap_ops __rcu * static const struct lwtunnel_encap_ops __rcu *
lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly; lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly;
...@@ -80,7 +80,7 @@ int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops, ...@@ -80,7 +80,7 @@ int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,
&lwtun_encaps[num], &lwtun_encaps[num],
NULL, ops) ? 0 : -1; NULL, ops) ? 0 : -1;
} }
EXPORT_SYMBOL(lwtunnel_encap_add_ops); EXPORT_SYMBOL_GPL(lwtunnel_encap_add_ops);
int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops,
unsigned int encap_type) unsigned int encap_type)
...@@ -99,7 +99,7 @@ int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, ...@@ -99,7 +99,7 @@ int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops,
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_encap_del_ops); EXPORT_SYMBOL_GPL(lwtunnel_encap_del_ops);
int lwtunnel_build_state(u16 encap_type, int lwtunnel_build_state(u16 encap_type,
struct nlattr *encap, unsigned int family, struct nlattr *encap, unsigned int family,
...@@ -138,7 +138,7 @@ int lwtunnel_build_state(u16 encap_type, ...@@ -138,7 +138,7 @@ int lwtunnel_build_state(u16 encap_type,
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_build_state); EXPORT_SYMBOL_GPL(lwtunnel_build_state);
int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack) int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack)
{ {
...@@ -175,7 +175,7 @@ int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack) ...@@ -175,7 +175,7 @@ int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack)
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_valid_encap_type); EXPORT_SYMBOL_GPL(lwtunnel_valid_encap_type);
int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining, int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining,
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
...@@ -205,7 +205,7 @@ int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining, ...@@ -205,7 +205,7 @@ int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining,
return 0; return 0;
} }
EXPORT_SYMBOL(lwtunnel_valid_encap_type_attr); EXPORT_SYMBOL_GPL(lwtunnel_valid_encap_type_attr);
void lwtstate_free(struct lwtunnel_state *lws) void lwtstate_free(struct lwtunnel_state *lws)
{ {
...@@ -219,7 +219,7 @@ void lwtstate_free(struct lwtunnel_state *lws) ...@@ -219,7 +219,7 @@ void lwtstate_free(struct lwtunnel_state *lws)
} }
module_put(ops->owner); module_put(ops->owner);
} }
EXPORT_SYMBOL(lwtstate_free); EXPORT_SYMBOL_GPL(lwtstate_free);
int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate) int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate)
{ {
...@@ -259,7 +259,7 @@ int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate) ...@@ -259,7 +259,7 @@ int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate)
return (ret == -EOPNOTSUPP ? 0 : ret); return (ret == -EOPNOTSUPP ? 0 : ret);
} }
EXPORT_SYMBOL(lwtunnel_fill_encap); EXPORT_SYMBOL_GPL(lwtunnel_fill_encap);
int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate) int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate)
{ {
...@@ -281,7 +281,7 @@ int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate) ...@@ -281,7 +281,7 @@ int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate)
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_get_encap_size); EXPORT_SYMBOL_GPL(lwtunnel_get_encap_size);
int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b) int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b)
{ {
...@@ -309,7 +309,7 @@ int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b) ...@@ -309,7 +309,7 @@ int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b)
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_cmp_encap); EXPORT_SYMBOL_GPL(lwtunnel_cmp_encap);
int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb) int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
{ {
...@@ -343,7 +343,7 @@ int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb) ...@@ -343,7 +343,7 @@ int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_output); EXPORT_SYMBOL_GPL(lwtunnel_output);
int lwtunnel_xmit(struct sk_buff *skb) int lwtunnel_xmit(struct sk_buff *skb)
{ {
...@@ -378,7 +378,7 @@ int lwtunnel_xmit(struct sk_buff *skb) ...@@ -378,7 +378,7 @@ int lwtunnel_xmit(struct sk_buff *skb)
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_xmit); EXPORT_SYMBOL_GPL(lwtunnel_xmit);
int lwtunnel_input(struct sk_buff *skb) int lwtunnel_input(struct sk_buff *skb)
{ {
...@@ -412,4 +412,4 @@ int lwtunnel_input(struct sk_buff *skb) ...@@ -412,4 +412,4 @@ int lwtunnel_input(struct sk_buff *skb)
return ret; return ret;
} }
EXPORT_SYMBOL(lwtunnel_input); EXPORT_SYMBOL_GPL(lwtunnel_input);
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