git: 50998292d197 - stable/13 - routing: hide notify_add and notify_del behind ROUTE_MPATH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:24:49 UTC
The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=50998292d197d0011ad2815b462bd32640651f55 commit 50998292d197d0011ad2815b462bd32640651f55 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-07-04 08:38:13 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-01-13 21:18:25 +0000 routing: hide notify_add and notify_del behind ROUTE_MPATH Fixes a warn about unused routines without the option. Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit db4b40213a084809cc062605043f5e536ee3aa92) --- sys/net/route/route_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route/route_helpers.c b/sys/net/route/route_helpers.c index 1577df5513d3..ff6688a8434f 100644 --- a/sys/net/route/route_helpers.c +++ b/sys/net/route/route_helpers.c @@ -258,6 +258,7 @@ rib_lookup(uint32_t fibnum, const struct sockaddr *dst, uint32_t flags, return (nh); } +#ifdef ROUTE_MPATH static void notify_add(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src, route_notification_t *cb, void *cbdata) { @@ -284,7 +285,6 @@ notify_del(struct rib_cmd_info *rc, const struct weightened_nhop *wn_src, cb(rc, cbdata); } -#ifdef ROUTE_MPATH static void decompose_change_notification(struct rib_cmd_info *rc, route_notification_t *cb, void *cbdata)