Remove unused nhop_ref_any() function.

Remove "opt_mpath.h" header where not needed.

No functional changes.
This commit is contained in:
Alexander V. Chernikov 2020-09-20 21:32:52 +00:00
parent 6507a8fecb
commit 1440f62266
6 changed files with 0 additions and 13 deletions

View File

@ -691,13 +691,6 @@ nhop_free(struct nhop_object *nh)
&nh_priv->nh_epoch_ctx);
}
int
nhop_ref_any(struct nhop_object *nh)
{
return (nhop_try_ref_object(nh));
}
void
nhop_free_any(struct nhop_object *nh)
{

View File

@ -29,7 +29,6 @@
__FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_route.h"
#include "opt_mpath.h"
#include <sys/param.h>
#include <sys/systm.h>

View File

@ -244,7 +244,6 @@ int nhops_init_rib(struct rib_head *rh);
void nhops_destroy_rib(struct rib_head *rh);
void nhop_ref_object(struct nhop_object *nh);
int nhop_try_ref_object(struct nhop_object *nh);
int nhop_ref_any(struct nhop_object *nh);
void nhop_free_any(struct nhop_object *nh);
void nhop_set_type(struct nhop_object *nh, enum nhop_type nh_type);

View File

@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_sctp.h"
#include "opt_mpath.h"
#include <sys/param.h>
#include <sys/systm.h>

View File

@ -70,7 +70,6 @@ __FBSDID("$FreeBSD$");
#include "opt_ipsec.h"
#include "opt_ipstealth.h"
#include "opt_sctp.h"
#include "opt_mpath.h"
#include "opt_route.h"
#include <sys/param.h>

View File

@ -67,8 +67,6 @@ __FBSDID("$FreeBSD$");
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_mpath.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/lock.h>