git: 258828d03b9f - main - routing: fix build warning without ROUTE_MPATH
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Aug 2022 09:47:58 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=258828d03b9f8414043c112fab97e9e9730560dc commit 258828d03b9f8414043c112fab97e9e9730560dc Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-08-11 09:46:28 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-08-11 09:47:26 +0000 routing: fix build warning without ROUTE_MPATH Reported by: Gary Jennejohn <garyj@gmx.de> MFC after: 1 month --- 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