diff options
author | dim <dim@FreeBSD.org> | 2013-12-28 01:15:34 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-12-28 01:15:34 +0000 |
commit | 58bc1e001e12056ac2316ee6895e99b0132443a2 (patch) | |
tree | 60e946ee025cc9a3c014f5272f27abc783218a3d | |
parent | 20a8dfaced4e9897242fdcfeda28a524f17984b7 (diff) | |
download | FreeBSD-src-58bc1e001e12056ac2316ee6895e99b0132443a2.zip FreeBSD-src-58bc1e001e12056ac2316ee6895e99b0132443a2.tar.gz |
MFC r259839:
In sys/netinet/in_mcast.c, inm_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.
-rw-r--r-- | sys/netinet/in_mcast.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/in_mcast.c b/sys/netinet/in_mcast.c index 8022c69..3b2a917 100644 --- a/sys/netinet/in_mcast.c +++ b/sys/netinet/in_mcast.c @@ -139,7 +139,9 @@ static int in_getmulti(struct ifnet *, const struct in_addr *, struct in_multi **); static int inm_get_source(struct in_multi *inm, const in_addr_t haddr, const int noalloc, struct ip_msource **pims); +#ifdef KTR static int inm_is_ifp_detached(const struct in_multi *); +#endif static int inm_merge(struct in_multi *, /*const*/ struct in_mfilter *); static void inm_purge(struct in_multi *); static void inm_reap(struct in_multi *); @@ -186,6 +188,7 @@ static STAILQ_HEAD(, ip_moptions) imo_gc_list = STAILQ_HEAD_INITIALIZER(imo_gc_list); static struct task imo_gc_task = TASK_INITIALIZER(0, inp_gcmoptions, NULL); +#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 @@ -208,6 +211,7 @@ inm_is_ifp_detached(const struct in_multi *inm) return (ifp == NULL); } +#endif /* * Initialize an in_mfilter structure to a known state at t0, t1 |