git: 2c07a773415b - stable/13 - routing: fix build warning without ROUTE_MPATH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:25:08 UTC
The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=2c07a773415bf9a812adf8743afaadab7f84b59c commit 2c07a773415bf9a812adf8743afaadab7f84b59c Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-08-11 09:46:28 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-01-13 21:18:27 +0000 routing: fix build warning without ROUTE_MPATH Reported by: Gary Jennejohn <garyj@gmx.de> MFC after: 1 month (cherry picked from commit 258828d03b9f8414043c112fab97e9e9730560dc) --- sys/net/route/route_ctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c index 34b00a0b82ce..1b7bcde7594f 100644 --- a/sys/net/route/route_ctl.c +++ b/sys/net/route/route_ctl.c @@ -82,9 +82,11 @@ static int change_route_byinfo(struct rib_head *rnh, struct rtentry *rt, static int add_route_flags(struct rib_head *rnh, struct rtentry *rt, struct route_nhop_data *rnd_add, int op_flags, struct rib_cmd_info *rc); +#ifdef ROUTE_MPATH static int add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt, struct route_nhop_data *rnd_add, struct route_nhop_data *rnd_orig, int op_flags, struct rib_cmd_info *rc); +#endif static int add_route(struct rib_head *rnh, struct rtentry *rt, struct route_nhop_data *rnd, struct rib_cmd_info *rc); @@ -783,6 +785,7 @@ out: return (error); } +#ifdef ROUTE_MPATH static int add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt, struct route_nhop_data *rnd_add, struct route_nhop_data *rnd_orig, @@ -826,6 +829,7 @@ add_route_flags_mpath(struct rib_head *rnh, struct rtentry *rt, return (0); } +#endif /* * Removes route defined by @info from the kernel table specified by @fibnum and