diff mbox series

IP6 Fragment: Export ip6_fragment function

Message ID 20180228212840.32320-1-sheena.mira-ato@alliedtelesis.co.nz
State Rejected, archived
Delegated to: David Miller
Headers show
Series IP6 Fragment: Export ip6_fragment function | expand

Commit Message

Sheena Mira-ato Feb. 28, 2018, 9:28 p.m. UTC
Export the ip6_fragment function so other loadable kernel
modules can access it.  The ipv4 version is already
exported.
---
 net/ipv6/ip6_output.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Miller March 1, 2018, 3:23 a.m. UTC | #1
From: Sheena Mira-ato <sheena.mira-ato@alliedtelesis.co.nz>
Date: Thu,  1 Mar 2018 10:28:40 +1300

> Export the ip6_fragment function so other loadable kernel
> modules can access it.  The ipv4 version is already
> exported.

Missing an appropriate signoff.

And there is no reason to export a function until there is
an in-tree user.

We do not export symbols for the sake of out-of-tree code,
sorry.
diff mbox series

Patch

diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 997c7f19ad62..8604031f0a93 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -887,6 +887,7 @@  int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
 	kfree_skb(skb);
 	return err;
 }
+EXPORT_SYMBOL(ip6_fragment);
 
 static inline int ip6_rt_check(const struct rt6key *rt_key,
 			       const struct in6_addr *fl_addr,