Skip to content

Commit

Permalink
lwtunnel: replace EXPORT_SYMBOL with EXPORT_SYMBOL_GPL
Browse files Browse the repository at this point in the history
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Roopa Prabhu authored and David S. Miller committed Aug 7, 2017
1 parent 1c14dc4 commit 08bd10f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions net/core/lwtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ struct lwtunnel_state *lwtunnel_state_alloc(int encap_len)

return lws;
}
EXPORT_SYMBOL(lwtunnel_state_alloc);
EXPORT_SYMBOL_GPL(lwtunnel_state_alloc);

static const struct lwtunnel_encap_ops __rcu *
lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly;
Expand All @@ -80,7 +80,7 @@ int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,
&lwtun_encaps[num],
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,
unsigned int encap_type)
Expand All @@ -99,7 +99,7 @@ int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops,

return ret;
}
EXPORT_SYMBOL(lwtunnel_encap_del_ops);
EXPORT_SYMBOL_GPL(lwtunnel_encap_del_ops);

int lwtunnel_build_state(u16 encap_type,
struct nlattr *encap, unsigned int family,
Expand Down Expand Up @@ -138,7 +138,7 @@ int lwtunnel_build_state(u16 encap_type,

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)
{
Expand Down Expand Up @@ -175,7 +175,7 @@ int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack)

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,
struct netlink_ext_ack *extack)
Expand Down Expand Up @@ -205,7 +205,7 @@ int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining,

return 0;
}
EXPORT_SYMBOL(lwtunnel_valid_encap_type_attr);
EXPORT_SYMBOL_GPL(lwtunnel_valid_encap_type_attr);

void lwtstate_free(struct lwtunnel_state *lws)
{
Expand All @@ -219,7 +219,7 @@ void lwtstate_free(struct lwtunnel_state *lws)
}
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)
{
Expand Down Expand Up @@ -259,7 +259,7 @@ int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate)

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)
{
Expand All @@ -281,7 +281,7 @@ int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate)

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)
{
Expand Down Expand Up @@ -309,7 +309,7 @@ int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b)

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)
{
Expand Down Expand Up @@ -343,7 +343,7 @@ int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)

return ret;
}
EXPORT_SYMBOL(lwtunnel_output);
EXPORT_SYMBOL_GPL(lwtunnel_output);

int lwtunnel_xmit(struct sk_buff *skb)
{
Expand Down Expand Up @@ -378,7 +378,7 @@ int lwtunnel_xmit(struct sk_buff *skb)

return ret;
}
EXPORT_SYMBOL(lwtunnel_xmit);
EXPORT_SYMBOL_GPL(lwtunnel_xmit);

int lwtunnel_input(struct sk_buff *skb)
{
Expand Down Expand Up @@ -412,4 +412,4 @@ int lwtunnel_input(struct sk_buff *skb)

return ret;
}
EXPORT_SYMBOL(lwtunnel_input);
EXPORT_SYMBOL_GPL(lwtunnel_input);

0 comments on commit 08bd10f

Please sign in to comment.