Skip to contentSkip to conversation

net/ipv6: Make ipv6_route_table_template static

PATCH Applied David Ahern 2 participants 2 messages Oct 9, 2018 – Oct 11, 2018

Subsystems (3)
lore
Share & tools
lore

David Ahern

author maintainer
#0 lore raw

PATCH 1/1 net/ipv6: Make ipv6_route_table_template static

From: David Ahern <[email protected]>

ipv6_route_table_template is exported but there are no users outside of route.c. Make it static.

---
 include/net/ipv6.h | 2 --
 net/ipv6/route.c   | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
include/net/ipv6.h +0 -2
index ff33f498c137..829650540780 100644
@@ -1089,8 +1089,6 @@ static inline int snmp6_unregister_dev(struct inet6_dev *idev) { return 0; }
 #endif
 
 #ifdef CONFIG_SYSCTL
-extern struct ctl_table ipv6_route_table_template[];
-
 struct ctl_table *ipv6_icmp_sysctl_init(struct net *net);
 struct ctl_table *ipv6_route_sysctl_init(struct net *net);
 int ipv6_sysctl_register(void);
net/ipv6/route.c +1 -1
index 7c38e0e058ae..bf4cd647d8b8 100644
@@ -5031,7 +5031,7 @@ int ipv6_sysctl_rtcache_flush(struct ctl_table *ctl, int write,
 	return 0;
 }
 
-struct ctl_table ipv6_route_table_template[] = {
+static struct ctl_table ipv6_route_table_template[] = {
 	{
 		.procname	=	"flush",
 		.data		=	&init_net.ipv6.sysctl.flush_delay,
Signature · 1 line
2.11.0