summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-28 01:19:48 +0000
committerdim <dim@FreeBSD.org>2013-12-28 01:19:48 +0000
commit5b742ab9412cb41f920f2df0184322f2b4d41ddd (patch)
tree76946abebc88b5ef875cf51d0bd9d2b9a2cb779a /sys/netinet6
parent58bc1e001e12056ac2316ee6895e99b0132443a2 (diff)
downloadFreeBSD-src-5b742ab9412cb41f920f2df0184322f2b4d41ddd.zip
FreeBSD-src-5b742ab9412cb41f920f2df0184322f2b4d41ddd.tar.gz
MFC r259840:
In sys/netinet6/in6_mcast.c, in6m_is_ifp_detached() is only used whenever KTR is defined, so put it between #ifdef KTR guards. This avoids a warning about a unused function if KTR is not enabled.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/in6_mcast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet6/in6_mcast.c b/sys/netinet6/in6_mcast.c
index fca48b5..ff72fa6 100644
--- a/sys/netinet6/in6_mcast.c
+++ b/sys/netinet6/in6_mcast.c
@@ -131,7 +131,9 @@ static int in6_mc_get(struct ifnet *, const struct in6_addr *,
static int in6m_get_source(struct in6_multi *inm,
const struct in6_addr *addr, const int noalloc,
struct ip6_msource **pims);
+#ifdef KTR
static int in6m_is_ifp_detached(const struct in6_multi *);
+#endif
static int in6m_merge(struct in6_multi *, /*const*/ struct in6_mfilter *);
static void in6m_purge(struct in6_multi *);
static void in6m_reap(struct in6_multi *);
@@ -175,6 +177,7 @@ static SYSCTL_NODE(_net_inet6_ip6_mcast, OID_AUTO, filters,
CTLFLAG_RD | CTLFLAG_MPSAFE, sysctl_ip6_mcast_filters,
"Per-interface stack-wide source filters");
+#ifdef KTR
/*
* Inline function which wraps assertions for a valid ifp.
* The ifnet layer will set the ifma's ifp pointer to NULL if the ifp
@@ -197,6 +200,7 @@ in6m_is_ifp_detached(const struct in6_multi *inm)
return (ifp == NULL);
}
+#endif
/*
* Initialize an in6_mfilter structure to a known state at t0, t1
OpenPOWER on IntegriCloud