The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=db4b40213a084809cc062605043f5e536ee3aa92

commit db4b40213a084809cc062605043f5e536ee3aa92
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2022-07-04 08:38:13 +0000
Commit:     Mateusz Guzik <[email protected]>
CommitDate: 2022-07-04 08:38:13 +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")
---
 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)

Reply via email to