From db4b40213a084809cc062605043f5e536ee3aa92 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Mon, 4 Jul 2022 08:38:13 +0000 Subject: [PATCH] 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") --- 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)