Skip to contentSkip to conversation

net/ipv4: Unexport fib_multipath_hash and fib_select_path

PATCH In review David Ahern 2 participants 2 messages Feb 13, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ipv4: Unexport fib_multipath_hash and fib_select_path

Do not export fib_multipath_hash or fib_select_path; both are only used by core ipv4 code.

---
 net/ipv4/fib_semantics.c | 1 -
 net/ipv4/route.c         | 1 -
 2 files changed, 2 deletions(-)
net/ipv4/fib_semantics.c +0 -1
index 99a5e24df852..7ae69b9dfe6d 100644
@@ -1780,4 +1780,3 @@ void fib_select_path(struct net *net, struct fib_result *res,
 	if (!fl4->saddr)
 		fl4->saddr = FIB_RES_PREFSRC(net, *res);
 }
-EXPORT_SYMBOL_GPL(fib_select_path);
net/ipv4/route.c +0 -1
index 228af793d154..c962ef486688 100644
@@ -1847,7 +1847,6 @@ int fib_multipath_hash(const struct net *net, const struct flowi4 *fl4,
 
 	return mhash >> 1;
 }
-EXPORT_SYMBOL_GPL(fib_multipath_hash);
 #endif /* CONFIG_IP_ROUTE_MULTIPATH */
 
 static int ip_mkroute_input(struct sk_buff *skb,
Signature · 1 line
2.11.0