aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-10-08 14:06:34 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-10 22:25:10 -0700
commited792e28c4bd09e9a319d2ad914aa62982cb4c4a (patch)
treef0da9d4e058bb4c0c16108c853b67840963acbc8
parentrtnetlink: Update comment in rtnl_stats_dump regarding strict data checking (diff)
downloadlinux-dev-ed792e28c4bd09e9a319d2ad914aa62982cb4c4a.tar.xz
linux-dev-ed792e28c4bd09e9a319d2ad914aa62982cb4c4a.zip
net/ipv6: Make ipv6_route_table_template static
ipv6_route_table_template is exported but there are no users outside of route.c. Make it static. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/net/ipv6.h2
-rw-r--r--net/ipv6/route.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index ff33f498c137..829650540780 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -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);
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 7c38e0e058ae..bf4cd647d8b8 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -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,