git: 91f2c69ec206 - main - Fix unused-function waring when compiling with FIB_ALGO.

Alexander V. Chernikov melifaro at FreeBSD.org
Sat Jan 30 23:28:06 UTC 2021


The branch main has been updated by melifaro:

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

commit 91f2c69ec206c2993722bfd818a8888f8237fa7e
Author:     Alexander V. Chernikov <melifaro at FreeBSD.org>
AuthorDate: 2021-01-30 23:24:26 +0000
Commit:     Alexander V. Chernikov <melifaro at FreeBSD.org>
CommitDate: 2021-01-30 23:25:56 +0000

    Fix unused-function waring when compiling with FIB_ALGO.
    
    MFC after:      3 days
---
 sys/netinet6/in6_fib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/netinet6/in6_fib.c b/sys/netinet6/in6_fib.c
index 3fbddbc28e3d..614f8111409a 100644
--- a/sys/netinet6/in6_fib.c
+++ b/sys/netinet6/in6_fib.c
@@ -218,6 +218,7 @@ check_urpf(struct nhop_object *nh, uint32_t flags,
 		return (check_urpf_nhop(nh, flags, src_if));
 }
 
+#ifndef FIB_ALGO
 static struct nhop_object *
 lookup_nhop(uint32_t fibnum, const struct in6_addr *dst6,
     uint32_t scopeid)
@@ -251,6 +252,7 @@ lookup_nhop(uint32_t fibnum, const struct in6_addr *dst6,
 
 	return (nh);
 }
+#endif
 
 /*
  * Performs reverse path forwarding lookup.


More information about the dev-commits-src-all mailing list