1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-06 18:29:47 +00:00

Remove ROUTE_MPATH-related warnings introduced in r366390.

Reported by:	mjg
This commit is contained in:
Alexander V. Chernikov 2020-10-03 14:37:54 +00:00
parent 04d672afa8
commit 9c584fa4bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366398
2 changed files with 4 additions and 0 deletions

View File

@ -91,7 +91,9 @@ static void rib_notify(struct rib_head *rnh, enum rib_subscription_type type,
struct rib_cmd_info *rc);
static void destroy_subscription_epoch(epoch_context_t ctx);
#ifdef ROUTE_MPATH
static bool rib_can_multipath(struct rib_head *rh);
#endif
/* Per-vnet multipath routing configuration */
SYSCTL_DECL(_net_route);

View File

@ -847,6 +847,7 @@ update_rtm_from_rc(struct rt_addrinfo *info, struct rt_msghdr **prtm,
return (0);
}
#ifdef ROUTE_MPATH
static void
save_del_notification(struct rib_cmd_info *rc, void *_cbdata)
{
@ -864,6 +865,7 @@ save_add_notification(struct rib_cmd_info *rc, void *_cbdata)
if (rc->rc_cmd == RTM_ADD)
*rc_new = *rc;
}
#endif
/*ARGSUSED*/
static int