From 6f0779143f17ac17d2b3b17f38c9fc5238cd7d87 Mon Sep 17 00:00:00 2001 From: bz Date: Sun, 12 Jan 2020 16:58:21 +0000 Subject: [PATCH] nd6_rtr: make nd6_prefix_onlink() static nd6_prefix_onlink() is not used anywhere outside nd6_rtr.c. Stop exporting it and make it file local static. --- sys/netinet6/nd6.h | 1 - sys/netinet6/nd6_rtr.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h index d1f84001547d..857657f6e205 100644 --- a/sys/netinet6/nd6.h +++ b/sys/netinet6/nd6.h @@ -418,7 +418,6 @@ void nd6_prefix_unlink(struct nd_prefix *, struct nd_prhead *); void nd6_prefix_del(struct nd_prefix *); void nd6_prefix_ref(struct nd_prefix *); void nd6_prefix_rele(struct nd_prefix *); -int nd6_prefix_onlink(struct nd_prefix *); int nd6_prefix_offlink(struct nd_prefix *); void pfxlist_onlink_check(void); struct nd_prefix *nd6_prefix_lookup(struct nd_prefixctl *); diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 2864cb0f5a9f..1b7fe4322f80 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -76,6 +76,7 @@ __FBSDID("$FreeBSD$"); static struct nd_defrouter *defrtrlist_update(struct nd_defrouter *); static int prelist_update(struct nd_prefixctl *, struct nd_defrouter *, struct mbuf *, int); +static int nd6_prefix_onlink(struct nd_prefix *); TAILQ_HEAD(nd6_drhead, nd_defrouter); VNET_DEFINE_STATIC(struct nd6_drhead, nd6_defrouter); @@ -2088,7 +2089,7 @@ nd6_prefix_onlink_rtrequest(struct nd_prefix *pr, struct ifaddr *ifa) return (a_failure); } -int +static int nd6_prefix_onlink(struct nd_prefix *pr) { struct epoch_tracker et;