Commit 05c36131ed for frr
commit 05c36131eda8afe47a77abcbde65a15af01c8529
Author: Mark Stapp <mjs@cisco.com>
Date: Thu Oct 22 13:14:38 2026 -0400
lib: make a prefix api static
Evpn prefix comparison api only used in prefix.c; make it
static
Signed-off-by: Mark Stapp <mjs@cisco.com>
diff --git a/lib/prefix.c b/lib/prefix.c
index e9d77c5cab..6267dbf74e 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -366,7 +366,7 @@ void prefix_copy(union prefixptr udest, union prefixconstptr usrc)
}
}
-bool evpn_addr_same(const struct evpn_addr *e1, const struct evpn_addr *e2)
+static bool evpn_addr_same(const struct evpn_addr *e1, const struct evpn_addr *e2)
{
if (e1->route_type != e2->route_type)
return false;
diff --git a/lib/prefix.h b/lib/prefix.h
index bb4db5b186..01e95a188f 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -408,7 +408,6 @@ extern int prefix_cmp(union prefixconstptr ua, union prefixconstptr ub);
extern int prefix_common_bits(union prefixconstptr ua, union prefixconstptr ub);
extern void prefix_copy(union prefixptr udst, union prefixconstptr usrc);
extern void apply_mask(union prefixptr pu);
-extern bool evpn_addr_same(const struct evpn_addr *e1, const struct evpn_addr *e2);
#ifdef __clang_analyzer__
/* clang-SA doesn't understand transparent unions, making it think that the